◄CWnd► ◄Up► ◄Contents► ◄Index► ◄Back► ──Microsoft Foundation Classes────────────────────────────────────────────── BOOL DlgDirSelectComboBox( LPSTR lpString, int nIDComboBox ); Parameter Description <lpString> Points to a buffer that is to receive the selected path. <nIDComboBox> Specifies the integer ID of the combo box control in the dialog box. Remarks Retrieves the current selection from the list box of a combo box. 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 the current selection is a directory name or drive letter, DlgDirSelectComboBox removes the enclosing square brackets (and hyphens, for drive letters) so that the name or letter is ready to be inserted into a new path. 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. The DlgDirSelectComboBox member function does not allow more than one filename to be returned from a combo box. Return Value Specifies the status of the current combo box selection. It is TRUE if the current selection is a directory name; otherwise FALSE. See Also ◄CWnd::DlgDirListComboBox►, ◄::DlgDirSelectComboBox► -♦-