ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/VTBFileUtil2/DiscBrowse.h
Revision: 285
Committed: 2003-09-02T20:40:35-07:00 (18 years, 11 months ago) by douglas
Content type: text/x-c
Original Path: trunk/VTBFileUtil2/DiscBrowse.h
File size: 1142 byte(s)
Log Message:
The world turns.

File Contents

# User Rev Content
1 douglas 260 // Vance Thrift and Biller File Utility 2
2     //
3     // Douglas Thrift
4     //
5 douglas 285 // $Id: DiscBrowse.h,v 1.6 2003/09/03 03:40:35 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     static unsigned count;
40     static map<unsigned, DiscBrowse*> browsers;
41 douglas 260 public:
42 douglas 282 DiscBrowse();
43     virtual ~DiscBrowse();
44     virtual void run(void);
45 douglas 260 };
46    
47     #endif // _DiscBrowse_h_