Radio Button Caption
-
Hi How to change the radio button caption text color( MFC ).By default it is showing Black color.I want the radio button caption text color, other than default color. Thanks
-
Hi How to change the radio button caption text color( MFC ).By default it is showing Black color.I want the radio button caption text color, other than default color. Thanks
Check if WM_CTLCOLORSTATIC helps. Checkout http://msdn.microsoft.com/en-us/library/bb787524(VS.85).aspx[^]
-
Hi How to change the radio button caption text color( MFC ).By default it is showing Black color.I want the radio button caption text color, other than default color. Thanks
In WM_CtlColor Handler write following Code. HBRUSH CTestProjectDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
if(pWnd->GetDlgCtrlID() == IDC_RADIO1)//For IDC_RADIO1 pDC->SetTextColor(RGB(255,0,0));return hbr; }