Partager via


Setting the Dialog Box’s Background Color

 

The latest version of this topic can be found at Setting the Dialog Box.

You can set the background color of your dialog boxes by handling WM_CTLCOLOR messages for the dialog box window. The color you set is used for only the specified dialog box.

See Also

Life Cycle of a Dialog Box
Handling Windows Messages in Your Dialog Box