Export (0) Print
Expand All

LBN_SELCHANGE notification code

Notifies the application that the selection in a list box has changed as a result of user input. The parent window of the list box receives this notification code through the WM_COMMAND message.


LBN_SELCHANGE

    WPARAM wParam;
    LPARAM lParam; 

Parameters

wParam

The LOWORD contains the identifier of the list box. The HIWORD specifies the notification code.

lParam

Handle to the list box.

Remarks

This notification code is sent only by a list box that has the LBS_NOTIFY style.

This notification code is not sent if the LB_SETSEL, LB_SETCURSEL, LB_SELECTSTRING, LB_SELITEMRANGE or LB_SELITEMRANGEEX message changes the selection.

For a multiple-selection list box, the LBN_SELCHANGE notification code is sent whenever the user presses an arrow key, even if the selection does not change.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

See also

Reference
LB_SETCURSEL
LBN_DBLCLK
LBN_SELCANCEL
Other Resources
WM_COMMAND

 

 

Community Additions

ADD
Show:
© 2014 Microsoft