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?
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 */