source: trunk/src/stdAfx.hpp @ 383

Revision 383, 2.6 KB checked in by Eoin, 12 years ago (diff)

Mockup of New Torrent Dialog.

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
89#include <boost/archive/xml_woarchive.hpp>
90#include <boost/archive/xml_wiarchive.hpp>
91
92using std::string;
93using std::wstring;
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
107template<class Archive>
108void serialize(Archive& ar, CRect& rect, const unsigned int version)
109{
110        ar & BOOST_SERIALIZATION_NVP(rect.top);
111        ar & BOOST_SERIALIZATION_NVP(rect.bottom);
112        ar & BOOST_SERIALIZATION_NVP(rect.left);
113        ar & BOOST_SERIALIZATION_NVP(rect.right);
114}
115
116namespace hal
117{
118       
119        using std::pair;
120        using std::make_pair;
121       
122        using boost::tuple;
123       
124}
125
126#define foreach BOOST_FOREACH
Note: See TracBrowser for help on using the repository browser.