source: src/stdAfx.hpp @ 345

Revision 345, 2.2 KB checked in by Eoin, 12 years ago (diff)

Minor renaming and attempts to decouple GUI from Torrents.

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#include "global/string_conv.hpp"
46
47template<class T>
48class RedrawLock
49{
50public:
51        RedrawLock(T& window) :
52                window_(window)
53        {
54                window_.SetRedraw(false);
55        }
56       
57        ~RedrawLock()
58        {
59                unlock();
60        }
61       
62        void unlock()
63        {
64                window_.SetRedraw(true);
65                window_.InvalidateRect(NULL, true);
66        }
67       
68private:
69        T& window_;
70};
71
72// Include very common C++ and Boost libraries
73
74#include <string>
75#include <vector>
76#include <boost/foreach.hpp>
77#include <boost/format.hpp>
78#include <boost/array.hpp>
79#include <boost/lexical_cast.hpp>
80#include <boost/bind.hpp>
81#include <boost/thread/thread.hpp>
82#include <boost/thread/recursive_mutex.hpp>
83#include <boost/smart_ptr.hpp>
84#include <boost/filesystem/path.hpp>
85#include <boost/filesystem/operations.hpp>
86#include <boost/noncopyable.hpp>
87#include <boost/tuple/tuple.hpp>
88
89using std::string;
90using std::wstring;
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       
107        using std::pair;
108        using std::make_pair;
109       
110        using boost::tuple;
111       
112}
113
114#define foreach BOOST_FOREACH
Note: See TracBrowser for help on using the repository browser.