Hello, I've created a simple MFC Dialog Box in VC++ 2003 (VC++ Version 7). I need to add a bitmap to one of my buttons. It's a "Play" button, and i just need to add a simple bitmap to it. A little thing like adding a button should be easy, but i haven't had the fortune of finding out how. Could some one please explain how to do this, and if possible provide an example. Thank you! I'd really appreciate all input.

October 14th, 2010, 05:23 PM

VictorN

Re: Adding Bitmap To button?

Did you try to use CButton::SetBitmap method?

October 15th, 2010, 11:14 AM

Dragondima

Re: Adding Bitmap To button?

Quote:

Originally Posted by VictorN

Did you try to use CButton::SetBitmap method?

Would you please be able to elaborate? I've seen it, but haven't found a good example.

October 15th, 2010, 11:53 AM

Igor Vartanov

Re: Adding Bitmap To button?

Quote:

i just need to add a simple bitmap to it

Add or put? Add implies having a bitmap along with a text. And the latter unfortunately is not that easy as it looks for the first glance. :) But if this is the put case, SetBitmap will do the trick alright.