2 |
|
// |
3 |
|
// Douglas Thrift |
4 |
|
// |
5 |
< |
// $Id: VTBFileUtil2.h,v 1.6 2003/08/17 00:43:49 douglas Exp $ |
5 |
> |
// $Id: VTBFileUtil2.h,v 1.10 2003/08/20 05:49:34 douglas Exp $ |
6 |
|
|
7 |
|
#ifndef _VTBFileUtil_h_ |
8 |
|
#define _VTBFileUtil_h_ |
16 |
|
#include <sstream> |
17 |
|
#include <cctype> |
18 |
|
#include <vector> |
19 |
+ |
#include <set> |
20 |
+ |
#include <map> |
21 |
|
#include <cstdlib> |
22 |
|
|
23 |
|
#include <windows.h> |
24 |
|
#include <commctrl.h> |
25 |
|
#include <objbase.h> |
26 |
|
#include <shlobj.h> |
27 |
+ |
#include <shlwapi.h> |
28 |
|
|
29 |
|
#include "resource.h" |
30 |
|
|
35 |
|
{ |
36 |
|
HINSTANCE instance; |
37 |
|
HICON icon; |
35 |
– |
UINT_PTR tips; |
38 |
|
}; |
39 |
|
|
40 |
|
extern bool debug; |
78 |
|
SetWindowPos(window, HWND_TOP, desktop.left + (rect.right / 2), desktop.top |
79 |
|
+ (rect.bottom / 2), 0, 0, SWP_NOSIZE); |
80 |
|
} |
81 |
< |
void tooltip(HWND tool, const string& tip); |
81 |
> |
inline void error(void) |
82 |
> |
{ |
83 |
> |
LPVOID message; |
84 |
> |
|
85 |
> |
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | |
86 |
> |
FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), 0, |
87 |
> |
LPTSTR(&message), 0, NULL); |
88 |
> |
MessageBox(NULL, LPCTSTR(message), programName.c_str(), MB_ICONERROR); |
89 |
> |
LocalFree(message); |
90 |
> |
} |
91 |
|
|
92 |
|
#endif // _VTBFileUtil_h_ |