I have a small (6×9) graphic that I want to draw on a CButton. I have managed to get this to work using ::LoadImage and CButton::SetBitmap.
The problem is that when I put the bitmap on the button it is no-longer drawn as an ‘XP style’ button. I.e. it does not have rounded corners.
How can I draw a bitmap (or an icon) on a button without the button losing the XP style?
Don’t do it with owner draw. Use CMFCButton which has much better support for bitmapped buttons, even with transparency.