windows_programming_notes.nbk: Home | Index | Next Page: WM_CTLCOLORBTN | Previous Page: WM_CREATE


 WM_CTLCOLOR

The WM_CTLCOLOR message is used in 16-bit versions of Windows to change the color scheme of list boxes, the list boxes of combo boxes, message boxes, button controls, edit controls, static controls, and dialog boxes.

Note For information related to this message and 32-bit versions of Windows, see Remarks.

    SendMessage(
          (HWND) hwnd, 
          WM_CTLCOLOR ,
          (WPARAM) wParam, 
          (LPARAM) lParam
    );

Parameters

Return Value

If an application processes this message, it returns a handle to a brush. The system uses the brush to paint the background of the control.

Remarks

In 32-bit versions of Windows, the WM_CTLCOLOR message has been replaced by more specific notifications. These replacements include the following:

Requirements


windows_programming_notes.nbk: Home | Index | Next Page: WM_CTLCOLORBTN | Previous Page: WM_CREATE


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time