LB_ADDFILE

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 
 

Parameters

lpszFilename
Value of lParam. Pointer to the name of the file to add.

Return Values

The return value is the zero-based index of the file that was added, or LB_ERR if an error occurs.

Remarks

The list box to which lpszFilename is added must have been filled by the DlgDirList function.

QuickInfo

  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.

See Also

List Boxes Overview, List Box Messages, DlgDirList, LB_ADDSTRING