Images on buttons

Discuss PocketC for CE (including Desktop Edition)

Postby wolfgang on Wed Apr 25, 2001 12:29 am


how can I display an image on a button? In other words, I have a normal clickable button, but instead of a text label I want to put an image onto it. I tried to include the styel BS_BITMAP (0x80) when I created the button, and then sending a sendmsg (buttin_id, BM_SETIMAGE, xxx, yyy) in several variations (xxx = path_to_bmp_file and yyy = path_to_bmp_file, xxx = TRUE and yyy = path_to_bmp_file, xxx = path_to_bmp_file and yyy = path_to_bmp_file), but no success.

The purpose of this would simply be to create buttons that are all black. I thought of creating them with a black rectangle as image. Is there another way
Maybe there is another way to do that, e.g. setting the button colour to black?

Any help greatly appreciated!

Composing music on the PocketPC! -
Posts: 281
Joined: Tue Dec 12, 2000 4:22 am
Location: USA

Postby Justinespinosa on Wed Apr 25, 2001 4:53 am

The paramter for this message i not a file name, but a handel to bitmap loaded in the memory. You can't acces these handels with PocketC.
But like always, i think a DLL can be done to support these messages.


OUTS Softwares

OUTS Softwares
Posts: 156
Joined: Wed Dec 06, 2000 2:30 pm
Location: Switzerland

Return to PocketC for CE

Who is online

Users browsing this forum: No registered users and 7 guests