NO

Author Topic: BM_SETIMAGE  (Read 5710 times)

grom-it

  • Guest
BM_SETIMAGE
« on: May 26, 2008, 06:49:05 PM »

 :'(
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.

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: BM_SETIMAGE
« Reply #1 on: May 26, 2008, 08:44:32 PM »
Here is test dialog with bitmap button for WinXP
 
May the source be with you