source: src/stdAfx.hpp @ 268

Revision 268, 2.5 KB checked in by Eoin, 12 years ago (diff)

Added copyright eventually.

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_GUID L"HALITE-{E3A8BF7D-962F-476E-886B-FECEDD2F0FC7}"
20#define WMU_ARE_YOU_ME_STRING  L"WMU_ARE_YOU_ME_HALITE-{E3A8BF7D-962F-476E-886B-FECEDD2F0FC7}"
21#define HALITE_SENDING_CMD 68816889
22
23#pragma comment(linker, "\"/manifestdependency:type='Win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
24
25#include <winsock2.h>
26#include <shellapi.h>
27#include <atlbase.h>
28#include <atlapp.h>
29
30extern CAppModule _Module;
31#define _ATL_USE_DDX_FLOAT
32
33#include <atlwin.h>
34#include <atlframe.h>
35#include <atlmisc.h>
36#include <atlcrack.h>
37#include <atldlgs.h>
38#include <atlsplit.h>
39#include <atlctrls.h>
40#include <atlctrlw.h>
41#include <atlctrlx.h>
42#include <atlddx.h>
43#include <atlscrl.h>
44
45//#include <stlsoft/util/nulldef.h>
46
47#include "global/wtl_app.hpp"
48
49template<class T>
50class RedrawLock
51{
52public:
53        RedrawLock(T& window) :
54                window_(window)
55        {
56                window_.SetRedraw(false);
57        }
58       
59        ~RedrawLock()
60        {
61                unlock();
62        }
63       
64        void unlock()
65        {
66                window_.SetRedraw(true);
67                window_.InvalidateRect(NULL, true);
68        }
69       
70private:
71        T& window_;
72};
73
74// Include very common C++ and Boost libraries
75
76#include <string>
77#include <vector>
78#include <boost/foreach.hpp>
79#include <boost/format.hpp>
80#include <boost/array.hpp>
81#include <boost/lexical_cast.hpp>
82#include <boost/bind.hpp>
83#include <boost/thread/thread.hpp>
84#include <boost/thread/recursive_mutex.hpp>
85#include <boost/smart_ptr.hpp>
86#include <boost/filesystem/path.hpp>
87#include <boost/filesystem/operations.hpp>
88#include <boost/noncopyable.hpp>
89
90using std::string;
91using std::wstring;
92using std::pair;
93using std::make_pair;
94
95using boost::lexical_cast;
96using boost::array;
97using boost::format;
98using boost::wformat;
99using boost::bind;
100using boost::thread;
101using boost::shared_ptr;
102using boost::scoped_ptr;
103using boost::filesystem::path;
104using boost::filesystem::wpath;
105using boost::noncopyable;
106
107namespace hal
108{
109        typedef boost::recursive_mutex mutex_t;
110        typedef boost::thread thread_t;
111}
112
113#define foreach BOOST_FOREACH
Note: See TracBrowser for help on using the repository browser.