DirListBox
DirListBox is a subclass of ListBox that is aware of the disk directory tree. The ListBox shows a sorted list of directories below the specified one, (including ".." for the parent directory). DirListBox displays a list of all accessible drives below the directory list. DirListBox displays the directories as [DIRNAME], and the drives are displayed as [-C-].
Window Structure Details
- PLHMENU Menu:
Menu is used as a UINT which specifies the maximum number of elements possible in the list. Note that this differs from the ListBoxes LogicalSize field because the number of elements that the list contains at any one time (LogicalSize) will be less than or equal to the maximum (Menu). Use this maximum while refreshing the list contents with the directories underneath the current directory so the list is not overflowed.
- All other details: See the ListBox class.
Messages
- NOTIFY:
If the subclass is (i.e. Data set to) NOTIFY_UPDATE, the DirBox refreshes its directory list for the directory path specified in Extra. DirListBox sorts the directory list, and the list is DRAWn.
- KEYSTROKE: Passed to the ListBox class handler.
- DRAW: Passed to the ListBox class handler.
- CREATE: Passed to the ListBox class handler.
- SETFOCUS: Passed to the ListBox class handler.
- LOSEFOCUS: Passed to the ListBox class handler.
- NULLEVENT: Passed to the ListBox class handler.
- DESTROY: Passed to the ListBox class handler.
- TERMINATE: Passed to the ListBox class handler.
- ACTIVATE: Passed to the ListBox class handler.
- DEACTIVATE: Passed to the ListBox class handler.v
- COMMAND: Passed to the ListBox class handler.
- APPEAR: Passed to the ListBox class handler.
- DISAPPEAR: Passed to the ListBox class handler.