External bitmaps and buttons
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.
Re: External bitmaps and buttons
Please post your code.
Cheers
Re: External bitmaps and buttons
I managed to work around it by using BS_OWNERDRAW, thanks anyways!
Re: External bitmaps and buttons
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....
Re: External bitmaps and buttons
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/attach...chmentid=20817
Play around with it and have some fun...