WinapiExtension
 All Classes Files Functions Variables Typedefs Pages
WinapiExtension.h
Go to the documentation of this file.
1 #ifndef WINAPI_EXTENSION_H
2 #define WINAPI_EXTENSION_H
3 
4 #include <assert.h>
5 #include <tchar.h>
6 #include <string>
7 #include <vector>
8 
12 typedef std::basic_string<TCHAR> tstring;
13 
14 // a simple check to test if CommCtrl.h is available
15 #ifdef WC_BUTTON
16 #define WINAPI_EX_COMMCTRL
17 #endif
18 
34 #if _DEBUG
35 #include <sstream> // for OutputDebugString
36 #endif
37 
38 // line should be set to __LINE__, we can't automate this
39 inline void WINAPI_EX_TRACE(const TCHAR* message, int line)
40 {
41  // Simple TRACE to output clickable messages to the debugger.
42  // This will be used to give hints if something non-critical fails at runtime.
43 #if _DEBUG
44  std::basic_stringstream<TCHAR> ss;
45  ss << _T(__FILE__) << "(" << line << "):" << message << "\n";
46  OutputDebugString(ss.str().c_str());
47 #endif
48 }
49 
50 #include "WinapiExtension\rect.h"
51 #include "WinapiExtension\IWindow.h"
53 #include "WinapiExtension\msgBase.h"
54 #include "WinapiExtension\WindowMessageHandler.h"
55 #include "WinapiExtension\Window.h"
56 #include "WinapiExtension\WindowModal.h"
57 #include "WinapiExtension\gdi.h"
58 #include "WinapiExtension\control.h"
59 #include "WinapiExtension\functions.inl"
60 #include "WinapiExtension\msgBase.inl"
61 
62 #endif