Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
voidSetDialogBkColor(COLORREFclrCtlBk**=RGB(192,192,192),COLORREFclrCtlText=RGB(0,0,0));**
Parameters
clrCtlBk
The dialog background color for the application.
clrCtlText
The dialog control color for the application.
Remarks
Call this member function from within the InitInstance member function to set the default background and text color for dialog boxes and message boxes within your application.
Example
BOOL CMyApp::InitInstance()
{
// Standard initialization
SetDialogBkColor(); // Set dialog background color to gray
LoadStdProfileSettings(); // Load standard INI file options (including MRU)
// ...
}