[293] | 1 | //////////////////////////////////////////////////////////// |
---|
| 2 | // Created by Roman Ryltsov roman@alax.info |
---|
| 3 | // $Id: stdafx.h 527 2012-10-21 17:13:50Z roman $ |
---|
| 4 | |
---|
| 5 | #pragma once |
---|
| 6 | |
---|
| 7 | //////////////////////////////////////////////////////////// |
---|
| 8 | // Windows definitions |
---|
| 9 | |
---|
| 10 | #include "targetver.h" |
---|
| 11 | |
---|
| 12 | #define _USE_MATH_DEFINES |
---|
| 13 | #define INLINE_HRESULT_FROM_WIN32 |
---|
| 14 | #define _INC_WINDOWSX |
---|
| 15 | #define _WINSOCKAPI_ // We will want Winsock 2 |
---|
| 16 | |
---|
| 17 | #include <math.h> |
---|
| 18 | #include <windows.h> |
---|
| 19 | #include <shellapi.h> |
---|
| 20 | |
---|
| 21 | //////////////////////////////////////////////////////////// |
---|
| 22 | // ATL definitions |
---|
| 23 | |
---|
| 24 | #define _ATL_APARTMENT_THREADED |
---|
| 25 | #define _ATL_NO_AUTOMATIC_NAMESPACE |
---|
| 26 | #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS |
---|
| 27 | #define _ATL_ALL_WARNINGS |
---|
| 28 | //#define ATL_NO_ASSERT_ON_DESTROY_NONEXISTENT_WINDOW |
---|
| 29 | |
---|
| 30 | #include "roatltrace.h" // Replacement for <atltrace.h> |
---|
| 31 | #include <atlbase.h> |
---|
| 32 | #include <atlcom.h> |
---|
| 33 | #include <atlwin.h> |
---|
| 34 | #include <atltypes.h> |
---|
| 35 | #include <atlsync.h> |
---|
| 36 | #include <atlfile.h> |
---|
| 37 | #include <atlpath.h> |
---|
| 38 | #include <atlcoll.h> |
---|
| 39 | #include <atlrx.h> |
---|
| 40 | #include <atlctl.h> |
---|
| 41 | #include <atlhost.h> |
---|
| 42 | |
---|
| 43 | using namespace ATL; |
---|
| 44 | using namespace ATL::ATLPath; |
---|
| 45 | |
---|
| 46 | //////////////////////////////////////////////////////////// |
---|
| 47 | // WTL |
---|
| 48 | |
---|
| 49 | #define _WTL_NO_CSTRING |
---|
| 50 | #define _WTL_NO_WTYPES |
---|
| 51 | #define _WTL_NO_UNION_CLASSES |
---|
| 52 | #define _WTL_NEW_PAGE_NOTIFY_HANDLERS |
---|
| 53 | |
---|
| 54 | #include <atlapp.h> |
---|
| 55 | #include <atlgdi.h> |
---|
| 56 | #include <atluser.h> |
---|
| 57 | #include <atlcrack.h> |
---|
| 58 | #include <atlctrls.h> |
---|
| 59 | #include <atlctrlx.h> |
---|
| 60 | #include <atlmisc.h> |
---|
| 61 | #include <atlframe.h> |
---|
| 62 | #include <atldlgs.h> |
---|
| 63 | |
---|
| 64 | using namespace WTL; |
---|
| 65 | |
---|
| 66 | //////////////////////////////////////////////////////////// |
---|
| 67 | // Alax.Info ATL/WTL |
---|
| 68 | |
---|
| 69 | #define REGISTRY_PRODUCTROOT _T("SOFTWARE\\Alax.Info\\Utility\\DirectionControl") |
---|
| 70 | #define REGISTRY_FILEROOT REGISTRY_PRODUCTROOT |
---|
| 71 | #define REGISTRY_ROOT REGISTRY_FILEROOT |
---|
| 72 | |
---|
| 73 | #include "roatlbase.h" |
---|
| 74 | #include "roatlvariants.h" |
---|
| 75 | #include "roatlcom.h" |
---|
| 76 | #include "roatlpersist.h" |
---|
| 77 | #include "roatlmisc.h" |
---|
| 78 | #include "roatlexceptionfilter.h" |
---|
| 79 | #include "rowtlapp.h" |
---|
| 80 | #include "rowtlcrack.h" |
---|
| 81 | #include "rofiles.h" |
---|
| 82 | #include "rodialogs.h" |
---|
| 83 | #include "rocontrols.h" |
---|
| 84 | |
---|
| 85 | //////////////////////////////////////////////////////////// |
---|
| 86 | // Common Controls |
---|
| 87 | |
---|
| 88 | #if defined _M_IX86 |
---|
| 89 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") |
---|
| 90 | #elif defined _M_IA64 |
---|
| 91 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") |
---|
| 92 | #elif defined _M_X64 |
---|
| 93 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") |
---|
| 94 | #else |
---|
| 95 | #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") |
---|
| 96 | #endif |
---|