ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/VTBFileUtil2/DiscBrowse.h
Revision: 288
Committed: 2003-09-03T15:58:38-07:00 (19 years, 1 month ago) by douglas
Content type: text/x-c
Original Path: trunk/VTBFileUtil2/DiscBrowse.h
File size: 1242 byte(s)
Log Message:
Ran into some trouble on Windows 95, hopefully its fixed.

File Contents

# User Rev Content
1 douglas 260 // Vance Thrift and Biller File Utility 2
2     //
3     // Douglas Thrift
4     //
5 douglas 288 // $Id: DiscBrowse.h,v 1.7 2003/09/03 22:58:37 douglas Exp $
6 douglas 260
7     #ifndef _DiscBrowse_h_
8     #define _DiscBrowse_h_
9    
10     #include "IndividualClient.h"
11    
12     class DiscBrowse
13     {
14     private:
15 douglas 285 struct Thing
16     {
17     int index;
18     bool order;
19     HWND list;
20     };
21 douglas 282 PROPSHEETPAGE wizard[2];
22     string discDir;
23 douglas 285 bool sortFile, sortNumber, sortName, sortSize;
24 douglas 282 static map<HWND, DiscBrowse*> windows;
25     void loadDir(void);
26     void saveDir(void);
27     void setDiscDir(HWND parent = NULL);
28 douglas 284 void populate(HWND parent);
29 douglas 282 static DiscBrowse* which(HWND window);
30     static DiscBrowse* which(HWND window, LPARAM l);
31     static int CALLBACK browse(HWND dialog, UINT msg, LPARAM l, LPARAM d);
32 douglas 285 static int CALLBACK sort(LPARAM first, LPARAM second, LPARAM l);
33 douglas 282 static INT_PTR CALLBACK start(HWND dialog, UINT msg, WPARAM w, LPARAM l);
34     static INT_PTR CALLBACK browse(HWND dialog, UINT msg, WPARAM w, LPARAM l);
35     protected:
36     string title;
37     HMENU popup;
38     unsigned number;
39 douglas 288 string tail(const string& path) { return path + (path[path.length() - 1] !=
40     '\\' ? "\\" : ""); }
41 douglas 282 static unsigned count;
42     static map<unsigned, DiscBrowse*> browsers;
43 douglas 260 public:
44 douglas 282 DiscBrowse();
45     virtual ~DiscBrowse();
46     virtual void run(void);
47 douglas 260 };
48    
49     #endif // _DiscBrowse_h_