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);
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. |
No return value.
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.
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.
Common Dialog Box Library Overview, Common Dialog Box Messages, CDN_SELCHANGE, CDN_TYPECHANGE, RegisterWindowMessage