Compartilhar via


Buttons Messages

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

Programming element Description

BM_CLICK

This message is sent by an application to simulate the user clicking a button.

BM_GETCHECK

This message is sent by an application to retrieve the check state of a radio button or check box.

BM_GETSTATE

This message is sent by an application to determine the state of a button or check box.

BM_SETCHECK

This message is sent by an application to set the check state of a radio button or check box.

BM_SETSTATE

This message is sent by an application to change the highlight state of a button.

BM_SETSTYLE

This message is sent by an application to change the style of a button.

BN_CLICKED

This message is sent when the user taps the pen on the touch screen.

BN_KILLFOCUS

This message is sent when a button loses the keyboard focus.

BN_SETFOCUS

This message is sent when a button receives the keyboard focus.

WM_CTLCOLORBTN

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

See Also

Reference

Buttons Reference