how to add bitmap image to buttons in MFC?

前端 未结 6 2024
灰色年华
灰色年华 2020-12-10 16:29

I am Trying to add an image to an existing button..I have done that to an extent, the problem is I can add an ownerdrawn Image but am not able to add the extact image that I

6条回答
  •  没有蜡笔的小新
    2020-12-10 17:13

    I actually fixed the problem..what I did is I replaced the HICON with HBITMAP and its working perfect...basically both would work fine but in my case when I loaded the icon into the button the background of the icon was not changing...I tried Bitmap then it work great. Now am working on positioning the Image and to add text...think I could go through

提交回复
热议问题