Radio button text color not set
-
I have dialog base MFC application Dialog box contains only one control(radio button) to change the text color of radio button i use oncltcolor(WM_CTLCOLOR) BUT it's now working i am using xp theme is there any solution
MKC002 wrote:
BUT it's now working
I assume that should read not working, in which case you need to give more detail, including a snippet of your code showing where it is going wrong.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
-
MKC002 wrote:
BUT it's now working
I assume that should read not working, in which case you need to give more detail, including a snippet of your code showing where it is going wrong.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
I have dialog base application, dialog box contains one radio button. to set the text color of radio button HBRUSH CtestDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { ...... // TODO: Change any attributes of the DC here if (pWnd->GetDlgCtrlID() == IDC_RADIO1) { pDC->SetTextColor (RGB(128,0,0)); // blue } ..... } This code works fine and radio button color gets changed but if i use xp theme in this project then text color of radio button does not set. To set xp theme, i add one custom resource which contains testdlg
-
I have dialog base application, dialog box contains one radio button. to set the text color of radio button HBRUSH CtestDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { ...... // TODO: Change any attributes of the DC here if (pWnd->GetDlgCtrlID() == IDC_RADIO1) { pDC->SetTextColor (RGB(128,0,0)); // blue } ..... } This code works fine and radio button color gets changed but if i use xp theme in this project then text color of radio button does not set. To set xp theme, i add one custom resource which contains testdlg
I think you may need some extra code in your override, as described here[^]. BTW please use <pre> tags round your code snippets to make them more readable.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
-
I think you may need some extra code in your override, as described here[^]. BTW please use <pre> tags round your code snippets to make them more readable.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman
I tried to use given example but the text color for radio button does not set. The background color of radio button is set. I noticed if i create a dialog box application in visual studio 2008,add one radio button and set its text color in OnCtlColor then the text color does not set.
-
I tried to use given example but the text color for radio button does not set. The background color of radio button is set. I noticed if i create a dialog box application in visual studio 2008,add one radio button and set its text color in OnCtlColor then the text color does not set.
Unfortunately I do not have an MFC capable version of VS so I cannot test it myself.
Unrequited desire is character building. OriginalGriff I'm sitting here giving you a standing ovation - Len Goodman