2 |
|
// |
3 |
|
// Douglas Thrift |
4 |
|
// |
5 |
< |
// $Id: VTBFileUtil2.h,v 1.4 2003/08/16 08:40:55 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_ |
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 |
< |
|
31 |
< |
enum Mode { none, disc, scan }; |
40 |
> |
extern Gui gui; |
41 |
|
|
42 |
|
void usage(HWND parent = NULL); |
43 |
|
void version(HWND parent = NULL); |
35 |
– |
void choice(Mode& mode, HWND parent = NULL); |
44 |
|
inline void center(HWND window) |
45 |
|
{ |
46 |
|
RECT rect, dialog, desktop; |