CFileDialog::OnLBSelChangedNotify

This function is called whenever the current selection in a list box is about to change.

virtual void OnLBSelChangedNotify(
   UINT nIDBox,
   UINT iCurSel,
   UINT nCode
);

Parameters

  • nIDBox
    The ID of the list box or combo box in which the selection occurred.

  • iCurSel
    The index of the current selection.

  • nCode
    The control notification code. This parameter must have one of the following values:

    • CD_LBSELCHANGE   Specifies iCurSel is the selected item in a single-selection list box.

    • CD_LBSELSUB   Specifies that iCurSel is no longer selected in a multiselection list box.

    • CD_LBSELADD   Specifies that iCurSel is selected in a multiselection list box.

    • CD_LBSELNOITEMS   Specifies that no selection exists in a multiselection list box.

Remarks

Override this function to provide custom handling of selection changes in the list box. For example, you can use this function to display the access rights or date-last-modified of each file the user selects.

Requirements

Header: afxdlgs.h

See Also

Reference

CFileDialog Class

Hierarchy Chart

Other Resources

CFileDialog Members