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 255 by douglas, 2003-08-15T17:12:57-07:00 vs.
Revision 259 by douglas, 2003-08-16T01:40:55-07:00

# Line 2 | Line 2
2   //
3   // Douglas Thrift
4   //
5 < // $Id: VTBFileUtil2.h,v 1.1 2003/08/16 00:12:57 douglas Exp $
5 > // $Id: VTBFileUtil2.h,v 1.4 2003/08/16 08:40:55 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   using namespace std;
25  
26   extern bool debug;
27   extern string program;
28   extern string programName;
29 < extern unsigned programVersion;
29 > extern string programVersion;
30  
31 < void usage(void);
32 < void version(void);
31 > enum Mode { none, disc, scan };
32 >
33 > void usage(HWND parent = NULL);
34 > void version(HWND parent = NULL);
35 > void choice(Mode& mode, HWND parent = NULL);
36 > inline void center(HWND window)
37 > {
38 >        RECT rect, dialog, desktop;
39 >
40 >        GetWindowRect(GetDesktopWindow(), &desktop);
41 >        GetWindowRect(window, &dialog);
42 >        CopyRect(&rect, &desktop);
43 >
44 >        OffsetRect(&dialog, -dialog.left, -dialog.top);
45 >        OffsetRect(&rect, -rect.left, -rect.top);
46 >        OffsetRect(&rect, -dialog.right, -dialog.bottom);
47 >
48 >        SetWindowPos(window, HWND_TOP, desktop.left + (rect.right / 2), desktop.top
49 >                + (rect.bottom / 2), 0, 0, SWP_NOSIZE);
50 > }
51 > void tooltip(HWND tool, const string& tip);
52  
53   #endif // _VTBFileUtil_h_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines