ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/VTBFileUtil2/VTBFileUtil2.h
(Generate patch)

Comparing trunk/VTBFileUtil2/VTBFileUtil2.h (file contents):
Revision 257 by douglas, 2003-08-15T23:44:42-07:00 vs.
Revision 262 by douglas, 2003-08-16T16:09:14-07:00

# Line 2 | Line 2
2   //
3   // Douglas Thrift
4   //
5 < // $Id: VTBFileUtil2.h,v 1.3 2003/08/16 06:44:42 douglas Exp $
5 > // $Id: VTBFileUtil2.h,v 1.5 2003/08/16 23:09:14 douglas Exp $
6  
7   #ifndef _VTBFileUtil_h_
8   #define _VTBFileUtil_h_
# Line 16 | Line 16
16   #include <sstream>
17   #include <cctype>
18   #include <vector>
19 + #include <cstdlib>
20  
21   #include <windows.h>
22   #include <commctrl.h>
23  
24 + #include "resource.h"
25 +
26   using namespace std;
27  
28 + enum Mode { none, disc, scan };
29 + struct Gui
30 + {
31 +        HINSTANCE instance;
32 +        HICON icon;
33 +        UINT_PTR tips;
34 + };
35 +
36   extern bool debug;
37   extern string program;
38   extern string programName;
39   extern string programVersion;
40 + extern Gui gui;
41  
42 < enum Mode { none, disc, scan };
43 <
32 < void usage(HINSTANCE instance, HWND parent = NULL);
33 < void version(HINSTANCE instance, HWND parent = NULL);
34 < void choice(Mode& mode, HINSTANCE instance, HWND parent = NULL);
42 > void usage(HWND parent = NULL);
43 > void version(HWND parent = NULL);
44   inline void center(HWND window)
45   {
46          RECT rect, dialog, desktop;
# Line 47 | Line 56 | inline void center(HWND window)
56          SetWindowPos(window, HWND_TOP, desktop.left + (rect.right / 2), desktop.top
57                  + (rect.bottom / 2), 0, 0, SWP_NOSIZE);
58   }
59 + void tooltip(HWND tool, const string& tip);
60  
61   #endif // _VTBFileUtil_h_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines