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 257 by douglas, 2003-08-15T23:44:42-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.3 2003/08/16 06:44:42 douglas Exp $
6  
7   #ifndef _VTBFileUtil_h_
8   #define _VTBFileUtil_h_
# Line 18 | Line 18
18   #include <vector>
19  
20   #include <windows.h>
21 + #include <commctrl.h>
22  
23   using namespace std;
24  
25   extern bool debug;
26   extern string program;
27   extern string programName;
28 < extern unsigned programVersion;
28 > extern string programVersion;
29  
30 < void usage(void);
31 < void version(void);
30 > enum Mode { none, disc, scan };
31 >
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);
35 > inline void center(HWND window)
36 > {
37 >        RECT rect, dialog, desktop;
38 >
39 >        GetWindowRect(GetDesktopWindow(), &desktop);
40 >        GetWindowRect(window, &dialog);
41 >        CopyRect(&rect, &desktop);
42 >
43 >        OffsetRect(&dialog, -dialog.left, -dialog.top);
44 >        OffsetRect(&rect, -rect.left, -rect.top);
45 >        OffsetRect(&rect, -dialog.right, -dialog.bottom);
46 >
47 >        SetWindowPos(window, HWND_TOP, desktop.left + (rect.right / 2), desktop.top
48 >                + (rect.bottom / 2), 0, 0, SWP_NOSIZE);
49 > }
50  
51   #endif // _VTBFileUtil_h_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines