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.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in commdlg.h.
  Unicode: Defined as Unicode and ANSI messages.

See Also

Common Dialog Box Library Overview, Common Dialog Box Messages, CDN_SELCHANGE, CDN_TYPECHANGE, RegisterWindowMessage