Board index » Visual Studio » How to change background color of dialog boxes at touch of a button
|
peisang2002
|
|
peisang2002
|
How to change background color of dialog boxes at touch of a button
Visual Studio119
How can I change the background color of my dialog boxes (main dialog box & pop-up dialog boxes) of my MFC application program? I would like to change the background color according to the selection of radio buttons. Thanks in advance for help. - |
| Ajay
Registered User |
Tue Sep 16 00:36:33 CDT 2003
Re:How to change background color of dialog boxes at touch of a button
Handle OnCtlColor(or WM_CTLCOLOR) in your dialog class. If you want to
change it for all the dialogs of your app, take a look at CWinApp::SetDialogBkColor (This function is obsolete in MFC7 on though, should work for MFC42). Regardless, look at codeguru/codeproject for sample code first. -- Ajay Kalra [MVP - VC++] ajaykalra@yahoo.com "Yeo CH" <chor-heim.yeo@psbcorp.com>wrote in message QuoteHow can I change the background color of my dialog boxes - |
