Click to See Complete Forum and Search --> : Load an image
Icyculyr
October 12th, 2008, 02:38 AM
I'd like to load an image onto a control, not sure which control to use (Static/Window/Button etc..)...
Can anyone tell me how I do this, I'd like to store the image in the program resources, and then load it onto whatever control I use..
Can anyone help?
Kind Regards
Icyculyr
Igor Vartanov
October 13th, 2008, 05:08 AM
In fact, you can draw an image in any window that you can control. About which control to use, the answer would be: any control type you are good at/familiar with. STM_SETIMAGE (http://msdn.microsoft.com/en-us/library/bb760782(VS.85).aspx) may be a good point where you start at.
Zaccheus
October 13th, 2008, 07:13 AM
I would suggest using LoadBitmap (http://msdn.microsoft.com/en-us/library/ms532309.aspx) to load the image and then a STATIC control (http://msdn.microsoft.com/en-us/library/bb760767(VS.85).aspx) to display it.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.