Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CComboBox::Dir
CComboBox                                   Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  int Dir( UINT attr, const char FAR* lpWildCard );
 
  Parameter    Description
 
  <attr>       Can be any combination of the enum values described in
               CFile::GetStatus or any combination of the following
               values:
 
               Value    Meaning
 
               0x0000   File can be read from or written to.
 
               0x0001   File can be read from, but not written to.
 
               0x0002   File is hidden and does not appear in a directory
                        listing.
 
               0x0004   File is a system file.
 
               0x0010   The name specified by <lpWildCard> specifies a
                        directory.
 
               0x0020   File has been archived.
 
               0x4000   Include all drives that match the name specified
                        by <lpWildCard>.
 
               0x8000   Exclusive flag. If the exclusive flag is set, only
                        files of the specified type are listed. Otherwise,
                        files of the specified type are listed in addition
                        to "normal" files.
 
  <lpWildCard> Points to a file-specification string. The string can
               contain wildcards (for example, *.*).
 
  Remarks
 
  Adds a list of filenames and/or drives to the list box of a combo box.
 
  Return Value
 
  If the return value is greater than or equal to 0, it is the zero-based
  index of the last filename added to the list. The return value is CB_ERR
  if an error occurs; the return value is CB_ERRSPACE if insufficient
  space is available to store the new strings.
 
  See Also
 
  CWnd::DlgDirList, CB_DIR, CFile::GetStatus
 
 
                                     -♦-