BitMaps - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

BitMaps

Hi i need help with IMAGE_BITMAP

Here is my code for example how to do it with standard bitmaps.
cpp Syntax
[code=cpp]
HWND hBmpBtn=CreateButton(hwnd,cs->hInstance,BS_BITMAP,rc,IDBC_BITMAP,
_T("BITMAP BUTTON - NO TEXT"));


HBITMAP hBmp=reinterpret_cast(LoadImage(0,MAKEINTRESOURCE(OBM_CHECK),

IMAGE_BITMAP,0,0,LR_SHARED));

SendMessage(hBmpBtn,BM_SETIMAGE,IMAGE_BITMAP,reinterpret_cast(hBmp));

[/code]
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.

Comments

Sign In or Register to comment.