SetBitmap doesn't work on Group-Box Control

  • Thread starter Thread starter larry
  • Start date Start date
L

larry

I'm trying to display a bit map on a group -box control instead of text
caption.

1)I created a bitmap in resource: IDB_BITMAP_BLUE
2)I set Bitmap property to true for the group box control.
3)I added a control variable for group box control: m_ctrlBlue



I used following code

HINSTANCE hinst=AfxGetInstanceHandle();
m_ctrlBlue.SetBitmap(LoadBitmap(hinst,MAKEINTRESOURCE(IDB_BITMAP_BLUE))
);

But I can not see the bitmap. Please help me. Thanks ahead



Larry
 
I don't think there's any internal support for the BS_GROUPBOX|BS_BITMAP
style combination.
 
Back
Top