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.4 2003/08/16 08:40:55 douglas Exp $ |
6 |
|
|
7 |
|
#ifndef _VTBFileUtil_h_ |
8 |
|
#define _VTBFileUtil_h_ |
16 |
|
#include <sstream> |
17 |
|
#include <cctype> |
18 |
|
#include <vector> |
19 |
+ |
#include <cstdlib> |
20 |
|
|
21 |
|
#include <windows.h> |
22 |
|
#include <commctrl.h> |
30 |
|
|
31 |
|
enum Mode { none, disc, scan }; |
32 |
|
|
33 |
< |
void usage(HINSTANCE instance, HWND parent = NULL); |
34 |
< |
void version(HINSTANCE instance, HWND parent = NULL); |
35 |
< |
void choice(Mode& mode, HINSTANCE instance, HWND parent = NULL); |
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; |
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_ |