
Disabling Bitmap Button loses bitmap
I'm using
MFC to put a bitmap
in a button, but when I disable
the button, the bitmap inside the
button becomes just a gray square.
How do I deal with this.
Thanks.
Here's my code
This part works fine...
HBITMAP hBmpSend;
hBmpSend = (HBITMAP)LoadImage(AfxGetInstanceHandle (),
MAKEINTRESOURCE(IDB_SEND), _
IMAGE_BITMAP, 20, 20, LR_DEFAULTCOLOR );
::SendMessage(m_SendButton, BM_SETIMAGE, IMAGE_BITMAP, (LPARAM) (DWORD)
hBmpSend );
But when I call this, the bitmap turns into a gray square.
m_SendButton.EnableWindow(FALSE);