This section contains information about the programming elements used with static controls. A static control is a control that enables an application to provide the user with informational text and graphics that typically require no response.
The STN_CLICKED notification code is sent when the user clicks a static control that has the SS_NOTIFY style. The parent window of the control receives this notification code through the WM_COMMAND message.
The STN_DBLCLK notification code is sent when the user double-clicks a static control that has the SS_NOTIFY style. The parent window of the control receives this notification code through the WM_COMMAND message.
The STN_DISABLE notification code is sent when a static control is disabled. The static control must have the SS_NOTIFY style to receive this notification code. The parent window of the control receives this notification code through the WM_COMMAND message.
The STN_ENABLE notification code is sent when a static control is enabled. The static control must have the SS_NOTIFY style to receive this notification code. The parent window of the control receives this notification code through the WM_COMMAND message.
A static control, or an edit control that is read-only or disabled, sends the WM_CTLCOLORSTATIC message to its parent window when the control is about to be drawn. By responding to this message, the parent window can use the specified device context handle to set the text and background colors of the static control. A window receives this message through its WindowProc function.