bitmap button not displaying in 3D style
Posted
by Rohit Sasikumar
on Stack Overflow
See other posts from Stack Overflow
or by Rohit Sasikumar
Published on 2010-06-09T09:59:01Z
Indexed on
2010/06/09
10:02 UTC
Read the original article
Hit count: 450
mfc
Hi,
I want to display on my dialog, a bitmap button. I am using the below code
CImage image;
hr = image.Load(_T("myimage.png")); // just change extension to load jpg
bitmap.Attach(image.Detach());
m_button.ModifyStyle(0,BS_BITMAP);
m_button.SetBitmap(bitmap);
This way bitmap is correctly displayed on button, but the button is not displayed in 3D style as normal buttons would look. I have set owner drawn property to false, still it displaying like this. Any ideas as to what could be wrong?
Thanks, Rohit
© Stack Overflow or respective owner