开发者

how to add an image along with text in a button in MFC?

开发者 https://www.devze.com 2022-12-16 21:54 出处:网络
Am having a hard time in adding im开发者_JAVA技巧age 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

Am having a hard time in adding im开发者_JAVA技巧age 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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消