source: src/stdAfx.hpp @ 310

Revision 310, 2.2 KB checked in by Eoin, 12 years ago (diff)
Line 
1
2//         Copyright Eóin O'Callaghan 2006 - 2007.
3// Distributed under the Boost Software License, Version 1.0.
4//    (See accompanying file LICENSE_1_0.txt or copy at
5//          http://www.boost.org/LICENSE_1_0.txt)
6
7#pragma once
8
9#define WINVER 0x0500
10#define _WIN32_WINNT 0x0500
11#define _WIN32_IE 0x0500
12#define _RICHEDIT_VER 0x0200
13#define VC_EXTRALEAN
14
15#ifndef WIN32_LEAN_AND_MEAN
16#define WIN32_LEAN_AND_MEAN
17#endif
18
19#define HALITE_SENDING_CMD 68816889
20
21#include <winsock2.h>
22#include <shellapi.h>
23#include <atlbase.h>
24#include <atlapp.h>
25
26extern CAppModule _Module;
27#define _ATL_USE_DDX_FLOAT
28
29#include <atlwin.h>
30#include <atlframe.h>
31#include <atlmisc.h>
32#include <atlcrack.h>
33#include <atldlgs.h>
34#include <atlsplit.h>
35#include <atlctrls.h>
36#include <atlctrlw.h>
37#include <atlctrlx.h>
38#include <atlddx.h>
39#include <atlscrl.h>
40
41#include "AtlAutosizeDlg.h"
42//#include <stlsoft/util/nulldef.h>
43
44#include "global/wtl_app.hpp"
45
46template<class T>
47class RedrawLock
48{
49public:
50        RedrawLock(T& window) :
51                window_(window)
52        {
53                window_.SetRedraw(false);
54        }
55       
56        ~RedrawLock()
57        {
58                unlock();
59        }
60       
61        void unlock()
62        {
63                window_.SetRedraw(true);
64                window_.InvalidateRect(NULL, true);
65        }
66       
67private:
68        T& window_;
69};
70
71// Include very common C++ and Boost libraries
72
73#include <string>
74#include <vector>
75#include <boost/foreach.hpp>
76#include <boost/format.hpp>
77#include <boost/array.hpp>
78#include <boost/lexical_cast.hpp>
79#include <boost/bind.hpp>
80#include <boost/thread/thread.hpp>
81#include <boost/thread/recursive_mutex.hpp>
82#include <boost/smart_ptr.hpp>
83#include <boost/filesystem/path.hpp>
84#include <boost/filesystem/operations.hpp>
85#include <boost/noncopyable.hpp>
86
87using std::string;
88using std::wstring;
89using std::pair;
90using std::make_pair;
91
92using boost::lexical_cast;
93using boost::array;
94using boost::format;
95using boost::wformat;
96using boost::bind;
97using boost::thread;
98using boost::shared_ptr;
99using boost::scoped_ptr;
100using boost::filesystem::path;
101using boost::filesystem::wpath;
102using boost::noncopyable;
103
104namespace hal
105{
106        typedef boost::recursive_mutex mutex_t;
107        typedef boost::thread thread_t;
108}
109
110#define foreach BOOST_FOREACH
Note: See TracBrowser for help on using the repository browser.