|
-
August 1st, 2008, 09:44 PM
#1
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.
-
August 2nd, 2008, 02:54 AM
#2
Re: External bitmaps and buttons
Please post your code.
Cheers
-
August 2nd, 2008, 09:37 AM
#3
Re: External bitmaps and buttons
I managed to work around it by using BS_OWNERDRAW, thanks anyways!
-
August 13th, 2008, 08:26 AM
#4
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....
-
August 13th, 2008, 08:42 AM
#5
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...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|