/* HydraIRC Copyright (C) 2002-2006 Dominic Clifton aka Hydra HydraIRC limited-use source license 1) You can: 1.1) Use the source to create improvements and bug-fixes to send to the author to be incorporated in the main program. 1.2) Use it for review/educational purposes. 2) You can NOT: 2.1) Use the source to create derivative works. (That is, you can't release your own version of HydraIRC with your changes in it) 2.2) Compile your own version and sell it. 2.3) Distribute unmodified, modified source or compiled versions of HydraIRC without first obtaining permission from the author. (I want one place for people to come to get HydraIRC from) 2.4) Use any of the code or other part of HydraIRC in anything other than HydraIRC. 3) All code submitted to the project: 3.1) Must not be covered by any license that conflicts with this license (e.g. GPL code) 3.2) Will become the property of the author. */ // stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // //#define NOT_READ_THE_LICENSE #ifdef NOT_READ_THE_LICENSE #error ** You must read LICENSE.TXT ** #endif ////////////////////////////////////////////////////////////////////////// // // Configuration Options! // //Uncomment this for font script testing stuff, to be completed by Zann //#define ZANN_FONTS //Enables extra debug output //#define VERBOSE_DEBUG //Enables XP-Like menus //Note: the context menus don't work right with this enabled due to the //way that windows passes owner draw messages to the wrong windows. //the implementation of the xp-like menus needs to be adjusted. //--> this has now been fixed, but there's a maximized MDI window problem // to iron out first. //--> additionally, checked items that have icons are not shown/drawn as // checked. //#define USE_XPCOMMANDBAR // Enables Tabbed MDI #define USE_TABBEDMDI ////////////////////////////////////////////////////////////////////////// #define RELEASE_VERSION #define _CRTDBG_MAP_ALLOC #include #include #include #pragma once // Change these values to use different versions #define WINVER 0x0500 #define _WIN32_WINNT 0x0400 // only needed for WM_MOUSEWHEEL #define _WIN32_IE 0x0501 #define _RICHEDIT_VER 0x0300 // 0x0300 #define _WTL_NO_CSTRING //#define _WTL_NO_WTYPES // ATL/GUI includes start here #include #include #include extern CAppModule _Module; #include #include #include #include #include #include #include #include //#include //#include //#include // atl should be downloaded and install from here http://www.codeplex.com/AtlServer/ #include // RegExps ///////////////////////////////////////////////////////////////////////// // // 3rd Party Include Files // #include #ifdef USE_XPCOMMANDBAR #define _WTL_USE_MDI #include #include #endif // Message pump for threads. #include "asyncmessagepump.h" // Tabs #include "atlgdix.h" #include "CustomTabCtrl.h" #include "DotNetTabCtrl.h" #include "TabbedFrame.h" // Docking Windows #include #include #include #include #include #include #include #include #include #include // Tabbed Docking Window (needs 3rd Party Tabs) #include #ifdef USE_TABBEDMDI #define _TABBEDMDI_MESSAGES_EXTERN_REGISTER #define _TABBEDMDI_MESSAGES_NO_WARN_ATL_MIN_CRT #include "TabbedMDI.h" #endif // Dialog COntainer #include // Taskbar Icon Class (well, systray icon really...) #include "taskbaricon.h" // libxml #include // General Includes #include // These are for using _open(), _write(), etc.. #include #include #include #include // HydraIRC Stuff #include #include #include #include // HydraControls #include #include // Other WTL Misc controls #include "gradientlabel\GradientLabel.h" // Other GUI related items #include