An application sends a CB_DIR message to add a list of filenames to the list box of a combo box.
CB_DIR wParam = (WPARAM) (UINT) uAttrs; // file attributes lParam = (LPARAM) (LPCTSTR) lpszFileSpec; // address of filename
Value |
Meaning |
DDL_ARCHIVE |
Includes archived files. |
DDL_DIRECTORY |
Includes subdirectories. Subdirectory names are enclosed in square brackets ([ ]). |
DDL_DRIVES |
Includes drives. Drives are listed in the form [-x-], where x is the drive letter. |
DDL_EXCLUSIVE |
Includes only files with the specified attributes. By default, read-write files are listed even if DDL_READWRITE is not specified. |
DDL_HIDDEN |
Includes hidden files. |
DDL_READONLY |
Includes read-only files. |
DDL_READWRITE |
Includes read-write files with no additional attributes. |
DDL_SYSTEM |
Includes system files. |
The return value is the zero-based index of the last filename added to the list. If an error occurs, the return value is CB_ERR. If insufficient space is available to store the new strings, it is CB_ERRSPACE.
CB_ADDSTRING, CB_INSERTSTRING, DlgDirList, DlgDirListComboBox
file: /Techref/os/win/api/win32/mess/src/msg01_11.htm, 3KB, , updated: 2000/4/7 11:19, local time: 2024/11/8 15:33,
3.231.219.178:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.piclist.com/techref/os/win/api/win32/mess/src/msg01_11.htm"> CB_DIR</A> |
Did you find what you needed? |
PICList 2024 contributors:
o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to www.piclist.com! |
.