kv79 -1 Posting Whiz in Training

Hi i need help with IMAGE_BITMAP

Here is my code for example how to do it with standard bitmaps.

HWND hBmpBtn=CreateButton(hwnd,cs->hInstance,BS_BITMAP,rc,IDBC_BITMAP,
                          _T("BITMAP BUTTON - NO TEXT"));

HBITMAP hBmp=reinterpret_cast<HBITMAP>(LoadImage(0,MAKEINTRESOURCE(OBM_CHECK),
                                       IMAGE_BITMAP,0,0,LR_SHARED));

SendMessage(hBmpBtn,BM_SETIMAGE,IMAGE_BITMAP,reinterpret_cast<LPARAM>(hBmp));

So i need someone who can write me how to make a my own image bitmap(for my pushbutton) if is possible.
And put an example how did you wrote , like i did with standard bitmap.


Thank you for your reading.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.