Click to See Complete Forum and Search --> : External bitmaps and buttons


Blips
August 1st, 2008, 09:44 PM
I'm loading in external bitmaps for my buttons to display. The bitmaps are being loaded fine. The buttons however are not displaying the bitmaps.

The images are HANDLE's. I'm setting the button to display the bitmap with SendMessage(buttonHwnd, BM_SETIMAGE, (WPARAM)IMAGE_BITMAP, (LPARAM)bitmapHandle)

I've also set the buttons style to BS_BITMAP.

I don't want to use resources, I want to load the images at run time from external sources.

golanshahar
August 2nd, 2008, 02:54 AM
Please post your code.

Cheers

Blips
August 2nd, 2008, 09:37 AM
I managed to work around it by using BS_OWNERDRAW, thanks anyways!

LOOSER_007
August 13th, 2008, 08:26 AM
me 2 want to use external bitmap files and icons to show menu items and splash screens at run time....

Please tell me how to do dis without doing any modifications in application resource.

Please post a sample code for the same....

bitshifter420
August 13th, 2008, 08:42 AM
I uploaded a demo some time ago.
It demonstrates custom buttons with bitmaps.
It does not use common controls classes.
It does not use bitmap resource scripts.
http://www.codeguru.com/forum/attachment.php?attachmentid=20817
Play around with it and have some fun...