Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The following table shows the static control messages, with a description of the purpose of each.

Programming element Description

STM_GETIMAGE

This message is sent by an application to retrieve the handle of the image associated with a static control.

STM_SETIMAGE

This message is sent by an application to associate a new image — icon or bitmap — with a static control.

STN_CLICKED

This message is sent when the user clicks a static control that has the SS_NOTIFY style.

STN_DISABLE

This message is sent when a static control is disabled.

STN_ENABLE

This message is sent when a static control is enabled.

WM_CTLCOLORSTATIC

This message is sent to the parent window of a static control when the control is about to be drawn.

See Also