I have some radio buttons (CButtons) which I have placed in a CWnd which is then diplayed on a CDialog.
The background colour of the radio button is black, not the usual windows dialog background colour. How can I make the background colour of the radio button in the CWnd the same as the background colour of the CDialog?
This is my code to create the CWnd and the radio buttons:
CWnd *ctlGroupBox = new CWnd;
CButton *rdo1 = new CButton;
CButton *rdo2 = new CButton;
ctlGroupBox->Create(_T("BUTTON"),
_T("Pizza Size"),
WS_CHILD | WS_VISIBLE | BS_GROUPBOX,
CRect(50, 10, 200, 160),
this,
15);
rdo1->Create(_T("Large1"),
WS_CHILD | WS_VISIBLE | BS_AUTORADIOBUTTON,
CRect(40, 80, 120, 140), ctlGroupBox, 0x16);
rdo2->Create(_T("Large2"),
WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
CRect(40, 130, 120, 140), ctlGroupBox, 0x16);