News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

BM_SETIMAGE

Started by grom-it, May 26, 2008, 06:49:05 PM

Previous topic - Next topic

grom-it


:'(
Running this on a pocket pc but it should work and it doesnt.

Compiles fine but no bitmap on button.....
HBITMAP hbmp;
hbmp = LoadBitmap(GetModuleHandle(NULL),MAKEINTRESOURCE(IDR_DELARROWBMP));
SendMessage(GetDlgItem(hwnd, IDB_DEL)),BM_SETIMAGE,(WPARAM)IMAGE_B ITMAP,(LPARAM)hbmp);


I have the bitmap in question in the rs file so "Should i be using MAKEINTRESOURCE"??

Running the above code in WM_CREATE
results in no bitmap placed on button
The Button already has the BS_BITMAP SETTING
i seem to be reading that this cannot be used in windows XP
Compiled on pelles under XP
Running under WINDOWS MOBILE 5  on a pocket pc
But after a lot of trying i fail to find an alternative method an would dearly like to place an arrow on my button and not just "<" as it is at present.

any info appreciated
BTIA
gromit.

TimoVJL

Here is test dialog with bitmap button for WinXP
May the source be with you