DlgDirList(defPath, idListbox, idStaticPath, fileType)

Fill a list box with a file or directory listing.


defPath : string

The file spec to fill the list box with

idListbox : int

The Id of the listbox control to fill.

idStaticPath : int

The Id of the static control used to display the current drive and directory. If idStaticPath is 0, it is assumed that no such control exists.

fileType : int

Specifies the attributes of the files to be displayed. It can be any combination of DDL_READWRITE, DDL_READONLY, DDL_HIDDEN, DDL_SYSTEM, DDL_DIRECTORY, DDL_ARCHIVE, DDL_POSTMSGS, DDL_DRIVES or DDL_EXCLUSIVE

MFC References