Re: load image in Delphi window

Posted by Jenny on December 22, 2005

In Reply to: How to load an image in a Delphi window posted by jegadeeswari on November 24, 2005

: I have created a window using windows API in delphi
: and I wish to set bitmap file as window background.

: How can i do it.

It's easy if you create the window ("form") under Delphi control:

1. Add an Image component to your form.

2. Let its Picture property point to a graphic file, or load the graphic during runtime.

...but if you create the window with an "API" function, I don't know...
Why would you do this anyway, making life more difficult than it is?