Hello. I'm creating a program with dialog editor. How can i set bitmap on button? I set bitmap at properties to True. I tried to search on google but i could only find how to set bitmap on button created with CButton.
Thank you
fire_ 0 Junior Poster in Training
Recommended Answers
Jump to PostAssuming this is on Windows, you can load the bitmap with LoadBitmap()/LoadImage(), and then set it using the BM_SETIMAGE Message.
The button needs the BS_BITMAP style bit set, but I believe your …
Jump to PostMFC has CBitmapButton class which probably does what you are looking for.
If you don't have the Visual Studio's CTRLTEST Sample installed, you can download it from
All 5 Replies
mitrmkar 1,056 Posting Virtuoso
fire_ 0 Junior Poster in Training
mitrmkar 1,056 Posting Virtuoso
fire_ 0 Junior Poster in Training
mitrmkar 1,056 Posting Virtuoso
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.