I have a dialog with two radio buttons that use the BS_BITMAP attribute.
When they use CButton, they worked fine. But once I switch to CExtRadioButton, the bitmaps are ignored and they are displayed with text. Here are the resource entries:
CONTROL "Portrait",IDC_ORIENT_PORT,"Button",BS_AUTORADIOBUTTON | BS_BITMAP | BS_CENTER | BS_VCENTER | BS_PUSHLIKE | WS_GROUP | WS_TABSTOP,231,7,16,16
CONTROL "Landscape",IDC_ORIENT_LAND,"Button",BS_AUTORADIOBUTTON | BS_BITMAP | BS_CENTER | BS_VCENTER | BS_PUSHLIKE | WS_TABSTOP,250,7,16,16
Here are the code references to them
DDX_Control(pDX, IDC_ORIENT_LAND, m_btnPrtLand);
DDX_Control(pDX, IDC_ORIENT_PORT, m_btnPrtPort);
hBitmap = ::LoadBitmap(AfxGetApp()->m_hInstance, MAKEINTRESOURCE(IDB_PRT_PORT));
m_btnPrtPort.SetBitmap(hBitmap);
hBitmap = ::LoadBitmap(AfxGetApp()->m_hInstance, MAKEINTRESOURCE(IDB_PRT_LAND));
m_btnPrtLand.SetBitmap(hBitmap);