Overview
Group
Quick Info

Windows NT
Yes
Win95
Yes
Win32s
Yes
Import Library
-
Header File
commdlg.h
Unicode
No
Platform Notes
None

LBSELCHSTRING

An Open or Save As dialog box sends the LBSELCHSTRING registered message to your hook procedure when the selection changes in any of the list boxes or combo boxes of the dialog box.

For Explorer-style Open and Save As dialog boxes, this message has been superseded by the CDN_SELCHANGE and CDN_TYPECHANGE messages.

MessageID = RegisterWindowMessage(LBSELCHSTRING);
idListBox = (UINT) wParam;
iItem = LOWORD (lParam);
iType = HIWORD (lParam);

Parameters

idListBox

Identifier of the list box or combo box in which the selection changed.

iItem

Item number of the selected string in the list box or combo box.

iType

Type of selection change. This parameter can be one of the following values:

CD_LBSELCHANGE
The item identified by iItem is the only item selected in a single-selection list box.
CD_LBSELADD
The item identified by iItem is one of the items selected in a multiple-selection list box.
CD_LBSELSUB
The item identified by iItem is no longer selected in a multiple-selection list box.
CD_LBSELNOITEMS
No items exist in a multiple-selection list box.

Return Values

No return value.

Remarks

The hook procedure must specify the LBSELCHSTRING constant in a call to the RegisterWindowMessage function to get the identifier for the message sent by the dialog box.

See Also

CDN_SELCHANGE, CDN_TYPECHANGE, RegisterWindowMessage

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database