Поделиться через


CWnd::DlgDirSelectComboBox

Retrieves the current selection from the list box of a combo box.

BOOL DlgDirSelectComboBox(
   LPTSTR lpString,
   int nIDComboBox 
);

Параметры

  • lpString
    Points to a buffer that is to receive the selected path.

  • nIDComboBox
    Specifies the integer ID of the combo box in the dialog box.

Возвращаемое значение

Nonzero if successful; otherwise 0.

Заметки

It assumes that the list box has been filled by the DlgDirListComboBox member function and that the selection is a drive letter, a file, or a directory name.

The DlgDirSelectComboBox member function copies the selection to the specified buffer. If there is no selection, the contents of the buffer are not changed.

DlgDirSelectComboBox sends CB_GETCURSEL and CB_GETLBTEXT messages to the combo box.

It does not allow more than one filename to be returned from a combo box.

Требования

Header: afxwin.h

См. также

Основные понятия

CWnd Class

CWnd Members

Hierarchy Chart

CWnd::DlgDirListComboBox

DlgDirSelectComboBoxEx