1

Am having a hard time in adding image along with a text in a Button..I know that it can be done by enabling the owner draw function with bitmapbutton class..But I dont want to that..so is ther anyother way that i can add an image along with text without drawing the text?

skaffman
  • 398,947
  • 96
  • 818
  • 769
kiddo
  • 1,596
  • 7
  • 31
  • 60

1 Answers1

3

Since you are using MFC Feature Pack, just cast your button into a CMFCButton class. Then you can call CMFCButton::SetImage to add the image.

djeidot
  • 4,542
  • 4
  • 42
  • 45