Partager via


Static Control Messages (Compact 2013)

3/28/2014

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

Reference

Static Control Reference