An application sends an LB_ADDFILE message to add the specified filename to a list box that contains a directory listing.
LB_ADDFILE
wParam = 0; // not used; must be zero
lParam = (LPARAM) (LPCTSTR) lpszFilename; // name of file to add
The return value is the zero-based index of the file that was added, or LB_ERR if an error occurs.
The list box to which lpszFilename is added must have been filled by the DlgDirList function.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 2.0 or later.
Header: Declared in winuser.h.
List Boxes Overview, List Box Messages, DlgDirList, LB_ADDSTRING