Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

background color

Is there any way to change the background color of the dialog window and the static text? Thanks.
0 Kudos
Message 1 of 2
(2,881 Views)
Call SetDialogBkColor with the background and foreground colors that you want in the InitInstance method of your CWinApp-derived class. For example, if you wanted your dialog to have a black background with white text, you would add this to your InitInstance method:

SetDialogBkColor(RGB(0, 0, 0), RGB(255, 255, 255));

- Elton
Message 2 of 2
(2,881 Views)