The information in this article applies to:
SUMMARYAn application developed with the Microsoft Foundation Classes (MFC) version 2.0 or later can change the background color of its dialog boxes by calling the SetDialogBkColor() member function in the CWinApp class. MORE INFORMATION
SetDialogBkColor() requires two COLORREF values as parameters. The first
parameter specifies the dialog box background color; the second specifies
the text color for a control in a dialog box. The application calls
SetDialogBkColor() in the InitInstance() member function of the CWinApp
class. For more information on the SetDialogBkColor() function, please
refer to the "Class Library Reference Guide, Volume 1," or to the online
Help file.
The SetDialogBkColor() function changes the colors of all dialog boxes in
an application. If each dialog box requires a different background color,
process the WM_CTLCOLOR message and return a brush that Windows can use to
paint the dialog box background.
Additional query words:
Keywords : kbDlg kbMFC KbUIDesign kbVC100 kbVC150 kbVC200 kbVC400 kbGrpMFCATL |
Last Reviewed: November 25, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |