다음을 통해 공유


CFileDialog::OnLBSelChangedNotify

virtualvoidOnLBSelChangedNotify(UINTnIDBox**,UINTiCurSel,UINTnCode);**

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.

For more information, see in the Win32 SDK documentation.

Remarks

This function is called whenever the current selection in a list box is about to change. 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.

CFileDialog OverviewClass MembersHierarchy Chart