home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / df3os2.zip / DIRECTRY.H < prev    next >
C/C++ Source or Header  |  1993-09-23  |  828b  |  38 lines

  1. // ---------- directry.h
  2.  
  3. #ifndef DRIVE_H
  4. #define DRIVE_H
  5.  
  6. #include <dir.h>
  7. #include <dos.h>
  8. #include "listbox.h"
  9. #include "label.h"
  10.  
  11. class PathNameLabel : public Label {
  12.     const char *CurrentPath();
  13. public:
  14.     PathNameLabel(int x, int y, int wd, DFWindow *par = 0) :
  15.         Label(CurrentPath(), x, y, wd, par) {}
  16.     void FillLabel();
  17. };
  18.  
  19. class DriveListBox : public ListBox    {
  20.     unsigned currdrive;
  21. public:
  22.     DriveListBox(int lf, int tp, DFWindow *par = 0);
  23. };
  24.  
  25. class DirectoryListBox : public ListBox    {
  26. public:
  27.     DirectoryListBox(int lf, int tp, DFWindow *par = 0);
  28.     void FillList();
  29. };
  30.  
  31. class FileNameListBox : public ListBox    {
  32. public:
  33.     FileNameListBox(const char *filespec, int lf, int tp, DFWindow *par = 0);
  34.     void FillList(const char *filespec);
  35. };
  36.  
  37. #endif
  38.