Notification Messages from Buttons

Notification message

Id

Description

BN_CLICKED

0

The user clicks a button.

BN_DBLCLK

5

The user double-clicks a button that has the BS_RADIOBUTTON style.

BN_DISABLE

4

Message is sent when a button is disabled.

BN_HILITE

2

Message is sent when the user selects a button.

BN_KILLFOCUS

7

Message is sent when a button loses the keyboard focus.

BN_PUSHED

2

Message is sent when the push state of a button is set to pushed.

BN_SETFOCUS

6

Message is sent when a button receives the keyboard focus.

BN_UNHILITE

3

Message is sent when the highlight should be removed from a button.

BN_UNPUSHED

3

Message is sent when the push state of a button is set to unpushed.


Notification Messages from List Boxes

Notification message

Id

Description

LBN_DBLCLK

2

The user double-clicks an item in the list box.

LBN_ERRSPACE

-2

The list box cannot allocate enough memory to fulfill a request.

LBN_KILLFOCUS

5

The list box loses the keyboard focus.

LBN_SELCANCEL

3

The user cancels the selection of an item in the list box.

LBN_SELCHANGE

1

The selection in a list box is about to change.

LBN_SETFOCUS

4

The list box receives the keyboard focus.


Notification Messages from Combo Boxes

Notification message

Id

Description

CBN_CLOSEUP

8

The CBN_CLOSEUP notification message is sent when the list box of a combo box has been closed.

CBN_DBLCLK

2

The CBN_DBLCLK notification message is sent when the user double-clicks a string in the list box of a combo box.

CBN_DROPDOWN

7

The CBN_DROPDOWN notification message is sent when the list box of a combo box is about to be made visible.

CBN_EDITCHANGE

5

The CBN_EDITCHANGE notification message is sent after the user has taken an action that may have altered the text in the edit control portion of a combo box. Unlike the CBN_EDITUPDATE notification message, this notification message is sent after Windows updates the screen.

CBN_EDITUPDATE

6

The CBN_EDITUPDATE notification message is sent when the edit control portion of a combo box is about to display altered text. This notification message is sent after the control has formatted the text, but before it displays the text.

CBN_ERRSPACE

-1

The CBN_ERRSPACE notification message is sent when a combo box cannot allocate enough memory to meet a specific request.

CBN_KILLFOCUS

4

The CBN_KILLFOCUS notification message is sent when a combo box loses the keyboard focus.

CBN_SELCHANGE

1

The CBN_SELCHANGE notification message is sent when the selection in the list box of a combo box is about to be changed as a result of the user either clicking in the list box or changing the selection by using the arrow keys.

CBN_SELENDCANCEL

10

The CBN_SELENDCANCEL notification message is sent when the user selects an item, but then selects another control or closes the dialog box. It indicates the user's initial selection is to be ignored.

CBN_SELENDOK

9

The CBN_SELENDOK notification message is sent when the user selects a list item, or selects an item and then closes the list. It indicates that the user's selection is to be processed.

CBN_SETFOCUS

3

The CBN_SETFOCUS notification message is sent when a combo box receives the keyboard focus.


Notification Messages from Buttons

Notification message


Description

BN_CLICKED

0

The BN_CLICKED notification message is sent when the user clicks a button.

BN_DBLCLK

5

The BN_DBLCLK notification message is sent when the user double-clicks a button that has the BS_OWNERDRAW or BS_RADIOBUTTON style.

BN_DISABLE

4

The BN_DISABLE notification message is sent when a button is disabled.

BN_HILITE

2

The BN_HILITE notification message is sent when the user selects a button.

BN_KILLFOCUS

7

The BN_KILLFOCUS notification message is sent when a button loses the keyboard focus. The button must have the BS_NOTIFY style to send this notification message.

BN_PUSHED

2

BN_HILITE

BN_SETFOCUS

6

The BN_SETFOCUS notification message is sent when a button receives the keyboard focus. The button must have the BS_NOTIFY style to send this notification message.

BN_UNHILITE

3

The BN_UNHILITE notification message is sent when the highlight should be removed from a button.

BN_UNPUSHED

3

BN_UNHILITE


Notification Messages from Edit

Notification message

Id

Description

EN_CHANGE

768

The EN_CHANGE notification message is sent when the user has taken an action that may have altered text in an edit control. Unlike the EN_UPDATE notification message, this notification message is sent after Windows updates the screen.

EN_ERRSPACE

1280

The EN_ERRSPACE notification message is sent when an edit control cannot allocate enough memory to meet a specific request.

EN_HSCROLL

1537

The EN_HSCROLL notification message is sent when the user clicks an edit control's horizontal scroll bar.

The parent window is notified before the screen is updated.

EN_KILLFOCUS

512

The EN_KILLFOCUS notification message is sent when an edit control loses the keyboard focus.

EN_MAXTEXT

1281

The EN_MAXTEXT notification message is sent when the current text insertion has exceeded the specified number of characters for the edit control. The text insertion has been truncated. 

This message is also sent when an edit control does not have the ES_AUTOHSCROLL style and the number of characters to be inserted would exceed the width of the edit control. 

This message is also sent when an edit control does not have the ES_AUTOVSCROLL style and the total number of lines resulting from a text insertion would exceed the height of the edit control.

EN_SETFOCUS

256

The EN_SETFOCUS notification message is sent when an edit control receives the keyboard focus.

EN_UPDATE

1024

The EN_UPDATE notification message is sent when an edit control is about to display altered text. This notification message is sent after the control has formatted the text, but before it displays the text. This makes it possible to resize the edit control window, if necessary.

EN_VSCROLL

1538

The EN_VSCROLL notification message is sent when the user clicks an edit control's vertical scroll bar.

The parent window is notified before the screen is updated.


Created with the Personal Edition of HelpNDoc: Elevate Your Documentation Process with HelpNDoc's Advanced Features