CB_DIR

Version 3.0

This message adds a list of the files from the current directory to the list box. Only files with the attributes specified by the wParam parameter and that match the file specification given by the lParam parameter are added.

Parameter

Description

 

wParam

Contains a DOS attribute value. For a list of the DOS attributes, see the DlgDirList function in Chapter 4, “Functions Directory.”

 

lParam

Points to a file-specification string. The string can contain wildcard characters (for example, *.*).

 

Return Value

The return value is a count of items displayed. 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.

Comments

The return value of the CB_DIR message is one less than the return value of the
CB_GETCOUNT message.