Hi, I'm trying to set a image for a button using SetDlgItem() with the BM_SETIMAGE parameter. MSDN says that I must send a handle to a image as the lParam parameter. Is that means a handle to a disk file?
This is a discussion on Bm_setimage within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I'm trying to set a image for a button using SetDlgItem() with the BM_SETIMAGE parameter. MSDN says that I ...
Hi, I'm trying to set a image for a button using SetDlgItem() with the BM_SETIMAGE parameter. MSDN says that I must send a handle to a image as the lParam parameter. Is that means a handle to a disk file?
the handle refers to the BITMAP
ETC:
Code:HBITMAP bmp; bmp = LoadBitmap(GetModuleHandle(NULL),MAKEINTRESOURCE(IDB_BITMAP)); SendMessage(child.hwnd,BM_SETIMAGE,(WPARAM)IMAGE_BITMAP,(LPARAM)bmp);
/* Have a nice day */
Thanx.