From c11aeb37af849927d5cba20275aa118ae127d756 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 9 Mar 2013 12:50:50 +0000 Subject: added precompiled header added version info git-svn-id: http://svn.miranda-ng.org/main/trunk@3938 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SimpleStatusMsg/res/Version.rc | 38 +++ plugins/SimpleStatusMsg/res/resource.rc | 277 ++++++++------------- plugins/SimpleStatusMsg/simplestatusmsg_10.vcxproj | 13 + .../simplestatusmsg_10.vcxproj.filters | 9 + plugins/SimpleStatusMsg/simplestatusmsg_11.vcxproj | 13 + .../simplestatusmsg_11.vcxproj.filters | 9 + plugins/SimpleStatusMsg/src/Version.h | 14 ++ plugins/SimpleStatusMsg/src/awaymsg.cpp | 2 +- plugins/SimpleStatusMsg/src/commonheaders.h | 41 ++- plugins/SimpleStatusMsg/src/main.cpp | 21 +- plugins/SimpleStatusMsg/src/msgbox.cpp | 2 +- plugins/SimpleStatusMsg/src/options.cpp | 6 +- plugins/SimpleStatusMsg/src/simplestatusmsg.h | 1 + plugins/SimpleStatusMsg/src/stdafx.cpp | 18 ++ plugins/SimpleStatusMsg/src/utils.cpp | 2 +- 15 files changed, 247 insertions(+), 219 deletions(-) create mode 100644 plugins/SimpleStatusMsg/res/Version.rc create mode 100644 plugins/SimpleStatusMsg/src/Version.h create mode 100644 plugins/SimpleStatusMsg/src/stdafx.cpp diff --git a/plugins/SimpleStatusMsg/res/Version.rc b/plugins/SimpleStatusMsg/res/Version.rc new file mode 100644 index 0000000000..5bfbab4754 --- /dev/null +++ b/plugins/SimpleStatusMsg/res/Version.rc @@ -0,0 +1,38 @@ +// Microsoft Visual C++ generated resource script. +// +#ifdef APSTUDIO_INVOKED +#error this file is not editable by Microsoft Visual C++ +#endif //APSTUDIO_INVOKED + +#include "afxres.h" +#include "..\src\version.h" + +VS_VERSION_INFO VERSIONINFO + FILEVERSION __FILEVERSION_STRING + PRODUCTVERSION __FILEVERSION_STRING + FILEFLAGSMASK 0x17L +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x0L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "000004b0" + BEGIN + VALUE "FileDescription", __DESCRIPTION + VALUE "InternalName", __PLUGIN_NAME + VALUE "LegalCopyright", __COPYRIGHT + VALUE "OriginalFilename", __FILENAME + VALUE "ProductName", __PLUGIN_NAME + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0, 1200 + END +END diff --git a/plugins/SimpleStatusMsg/res/resource.rc b/plugins/SimpleStatusMsg/res/resource.rc index bc867a6823..8b5f91b33e 100644 --- a/plugins/SimpleStatusMsg/res/resource.rc +++ b/plugins/SimpleStatusMsg/res/resource.rc @@ -21,57 +21,6 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL #pragma code_page(1250) #endif //_WIN32 -///////////////////////////////////////////////////////////////////////////// -// -// Version -// - -VS_VERSION_INFO VERSIONINFO - FILEVERSION 1,9,0,4 - PRODUCTVERSION 1,9,0,4 - FILEFLAGSMASK 0x3fL -#ifdef _DEBUG - FILEFLAGS 0x1L -#else - FILEFLAGS 0x0L -#endif - FILEOS 0x40004L - FILETYPE 0x2L - FILESUBTYPE 0x0L -BEGIN - BLOCK "StringFileInfo" - BEGIN - BLOCK "000004b0" - BEGIN - VALUE "Comments", "Licensed under the terms of the GNU General Public License" - VALUE "CompanyName", "Bartosz 'Dezeath' Białek, Harven" - VALUE "FileDescription", "Simple Status Message plugin for Miranda NG" - VALUE "FileVersion", "1.9.0.4" - VALUE "InternalName", "simplestatusmsg" - VALUE "LegalCopyright", "Copyright © 2006-2011 Bartosz Białek, © 2005 Harven" - VALUE "OriginalFilename", "simplestatusmsg.dll" - VALUE "ProductName", "Simple Status Message" - VALUE "ProductVersion", "1.9.0.4" - END - END - BLOCK "VarFileInfo" - BEGIN - VALUE "Translation", 0x0, 1200 - END -END - -#endif // Neutral resources -///////////////////////////////////////////////////////////////////////////// - - -///////////////////////////////////////////////////////////////////////////// -// Polish resources - -#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_PLK) -#ifdef _WIN32 -LANGUAGE LANG_POLISH, SUBLANG_DEFAULT -#pragma code_page(1250) -#endif //_WIN32 #ifdef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// @@ -138,132 +87,6 @@ BEGIN DEFPUSHBUTTON "&Cancel",IDCANCEL,55,6,50,14,BS_CENTER | BS_VCENTER END - -///////////////////////////////////////////////////////////////////////////// -// -// DESIGNINFO -// - -#ifdef APSTUDIO_INVOKED -GUIDELINES DESIGNINFO -BEGIN - IDD_READAWAYMSG, DIALOG - BEGIN - LEFTMARGIN, 5 - RIGHTMARGIN, 182 - TOPMARGIN, 5 - BOTTOMMARGIN, 67 - END - - IDD_AWAYMSGBOX, DIALOG - BEGIN - LEFTMARGIN, 7 - RIGHTMARGIN, 201 - TOPMARGIN, 7 - BOTTOMMARGIN, 83 - END - - IDD_COPY, DIALOG - BEGIN - LEFTMARGIN, 7 - RIGHTMARGIN, 152 - TOPMARGIN, 7 - BOTTOMMARGIN, 18 - END -END -#endif // APSTUDIO_INVOKED - - -///////////////////////////////////////////////////////////////////////////// -// -// Icon -// - -// Icon with lowest ID value placed first to ensure application icon -// remains consistent on all systems. -IDI_CROSS ICON "cross.ico" -IDI_HISTORY ICON "history.ico" -IDI_MESSAGE ICON "msg.ico" -IDI_PLUS ICON "plus.ico" -IDI_CHIST ICON "cbook.ico" -IDI_COPY ICON "copy.ico" -IDI_CSMSG ICON "csmsg.ico" -IDI_GOTOURL ICON "gotourl.ico" - -///////////////////////////////////////////////////////////////////////////// -// -// Menu -// - -IDR_EDITMENU MENU -BEGIN - POPUP "" - BEGIN - MENUITEM "%time%", IDM_VTIME - MENUITEM "%date%", IDM_VDATE - MENUITEM "%winampsong%", IDM_VWINAMPSONG - MENUITEM "%rand(x,y)%", IDM_VRANDXY - MENUITEM "%randmsg%", IDM_VRANDMSG - MENUITEM "%randdefmsg%", IDM_VRANDDEFMSG - MENUITEM SEPARATOR - POPUP "Fortune" - BEGIN - MENUITEM "%fortunemsg%", ID__FORTUNE - MENUITEM "%protofortunemsg%", ID__FORTUNEAWAYMSG_PROTOFORTUNEMSG - MENUITEM "%statusfortunemsg%", ID__FORTUNEAWAYMSG_STATUSFORTUNEMSG - END - POPUP "Variables" - BEGIN - MENUITEM "?cinfo(contact,property)", ID__VARIABLES_CINFOCONTACTPROPERTY - MENUITEM "?contact(string,property)", ID__VARIABLES_CONTACTSTRINGPROPERTY - MENUITEM "?mstatus(protocol)", ID__VARIABLES_MSTATUSPROTOCOL - MENUITEM "?lsdate(contact,format)", ID__VARIABLES_LSDATECONTACTFORMAT - MENUITEM "?lsstatus(contact)", ID__VARIABLES_LSSTATUSCONTACT - MENUITEM "?lstime(contact,format)", ID__VARIABLES_LSTIMECONTACTFORMAT - MENUITEM "?dbsetting(contact,module,setting)", ID__VARIABLES_DBSETTINGCONTACTMODULESETTING - MENUITEM "?txtfile(file,line)", ID__VARIABLES_TXTFILEFILELINE - MENUITEM "?if(condition,true,false)", ID__VARIABLES_IFCONDITIONTRUEFALSE - MENUITEM "?strcmp(string1,string2)", ID__VARIABLES_STRCMPSTRING1STRING2 - MENUITEM "?stricmp(string1,string2)", ID__VARIABLES_STRICMPSTRING1STRING2 - MENUITEM "?cdate(format)", ID__VARIABLES_CDATEFORMAT - MENUITEM "?ctime(format)", ID__VARIABLES_CTIMEFORMAT - MENUITEM "?replace(sub,string1,string2)", ID__VARIABLES_REPLACESUBSTRING1STRING2 - MENUITEM "?lower(string)", ID__VARIABLES_LOWERSTRING - MENUITEM "?upper(string)", ID__VARIABLES_UPPERSTRING - MENUITEM "?scroll(string,numchars,numchars)", ID__VARIABLES_SCROLLSTRINGNUMCHARSNUMCHARS - MENUITEM SEPARATOR - MENUITEM "More variables...", ID__VARIABLES_MOREVARIABLES - END - MENUITEM "Fortune", ID__FORTUNEAWAYMSG - MENUITEM "Variables", ID__VARIABLES - MENUITEM SEPARATOR - MENUITEM "Cut", IDM_CUT - MENUITEM "Copy", IDM_COPY - MENUITEM "Paste", IDM_PASTE - MENUITEM "Delete", IDM_DELETE - MENUITEM SEPARATOR - MENUITEM "Select All", IDM_SELECTALL - END -END - -#endif // Polish resources -///////////////////////////////////////////////////////////////////////////// - - -///////////////////////////////////////////////////////////////////////////// -// English (U.S.) resources - -#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) -#ifdef _WIN32 -LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US -#pragma code_page(1252) -#endif //_WIN32 - -///////////////////////////////////////////////////////////////////////////// -// -// Dialog -// - IDD_OPT_GENERAL DIALOGEX 0, 0, 307, 216 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_VISIBLE EXSTYLE WS_EX_CONTROLPARENT @@ -386,6 +209,30 @@ END #ifdef APSTUDIO_INVOKED GUIDELINES DESIGNINFO BEGIN + IDD_READAWAYMSG, DIALOG + BEGIN + LEFTMARGIN, 5 + RIGHTMARGIN, 182 + TOPMARGIN, 5 + BOTTOMMARGIN, 67 + END + + IDD_AWAYMSGBOX, DIALOG + BEGIN + LEFTMARGIN, 7 + RIGHTMARGIN, 201 + TOPMARGIN, 7 + BOTTOMMARGIN, 83 + END + + IDD_COPY, DIALOG + BEGIN + LEFTMARGIN, 7 + RIGHTMARGIN, 152 + TOPMARGIN, 7 + BOTTOMMARGIN, 18 + END + IDD_OPT_GENERAL, DIALOG BEGIN LEFTMARGIN, 7 @@ -420,7 +267,81 @@ BEGIN END #endif // APSTUDIO_INVOKED -#endif // English (U.S.) resources + +///////////////////////////////////////////////////////////////////////////// +// +// Icon +// + +// Icon with lowest ID value placed first to ensure application icon +// remains consistent on all systems. +IDI_CROSS ICON "cross.ico" +IDI_HISTORY ICON "history.ico" +IDI_MESSAGE ICON "msg.ico" +IDI_PLUS ICON "plus.ico" +IDI_CHIST ICON "cbook.ico" +IDI_COPY ICON "copy.ico" +IDI_CSMSG ICON "csmsg.ico" +IDI_GOTOURL ICON "gotourl.ico" + +///////////////////////////////////////////////////////////////////////////// +// +// Menu +// + +IDR_EDITMENU MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "%time%", IDM_VTIME + MENUITEM "%date%", IDM_VDATE + MENUITEM "%winampsong%", IDM_VWINAMPSONG + MENUITEM "%rand(x,y)%", IDM_VRANDXY + MENUITEM "%randmsg%", IDM_VRANDMSG + MENUITEM "%randdefmsg%", IDM_VRANDDEFMSG + MENUITEM SEPARATOR + POPUP "Fortune" + BEGIN + MENUITEM "%fortunemsg%", ID__FORTUNE + MENUITEM "%protofortunemsg%", ID__FORTUNEAWAYMSG_PROTOFORTUNEMSG + MENUITEM "%statusfortunemsg%", ID__FORTUNEAWAYMSG_STATUSFORTUNEMSG + END + POPUP "Variables" + BEGIN + MENUITEM "?cinfo(contact,property)", ID__VARIABLES_CINFOCONTACTPROPERTY + MENUITEM "?contact(string,property)", ID__VARIABLES_CONTACTSTRINGPROPERTY + MENUITEM "?mstatus(protocol)", ID__VARIABLES_MSTATUSPROTOCOL + MENUITEM "?lsdate(contact,format)", ID__VARIABLES_LSDATECONTACTFORMAT + MENUITEM "?lsstatus(contact)", ID__VARIABLES_LSSTATUSCONTACT + MENUITEM "?lstime(contact,format)", ID__VARIABLES_LSTIMECONTACTFORMAT + MENUITEM "?dbsetting(contact,module,setting)", ID__VARIABLES_DBSETTINGCONTACTMODULESETTING + MENUITEM "?txtfile(file,line)", ID__VARIABLES_TXTFILEFILELINE + MENUITEM "?if(condition,true,false)", ID__VARIABLES_IFCONDITIONTRUEFALSE + MENUITEM "?strcmp(string1,string2)", ID__VARIABLES_STRCMPSTRING1STRING2 + MENUITEM "?stricmp(string1,string2)", ID__VARIABLES_STRICMPSTRING1STRING2 + MENUITEM "?cdate(format)", ID__VARIABLES_CDATEFORMAT + MENUITEM "?ctime(format)", ID__VARIABLES_CTIMEFORMAT + MENUITEM "?replace(sub,string1,string2)", ID__VARIABLES_REPLACESUBSTRING1STRING2 + MENUITEM "?lower(string)", ID__VARIABLES_LOWERSTRING + MENUITEM "?upper(string)", ID__VARIABLES_UPPERSTRING + MENUITEM "?scroll(string,numchars,numchars)", ID__VARIABLES_SCROLLSTRINGNUMCHARSNUMCHARS + MENUITEM SEPARATOR + MENUITEM "More variables...", ID__VARIABLES_MOREVARIABLES + END + MENUITEM "Fortune", ID__FORTUNEAWAYMSG + MENUITEM "Variables", ID__VARIABLES + MENUITEM SEPARATOR + MENUITEM "Cut", IDM_CUT + MENUITEM "Copy", IDM_COPY + MENUITEM "Paste", IDM_PASTE + MENUITEM "Delete", IDM_DELETE + MENUITEM SEPARATOR + MENUITEM "Select All", IDM_SELECTALL + END +END + + +#endif // Neutral resources ///////////////////////////////////////////////////////////////////////////// diff --git a/plugins/SimpleStatusMsg/simplestatusmsg_10.vcxproj b/plugins/SimpleStatusMsg/simplestatusmsg_10.vcxproj index 07d53ae21b..78a0c0555b 100644 --- a/plugins/SimpleStatusMsg/simplestatusmsg_10.vcxproj +++ b/plugins/SimpleStatusMsg/simplestatusmsg_10.vcxproj @@ -81,6 +81,8 @@ Level3 EditAndContinue false + Use + commonheaders.h _DEBUG;%(PreprocessorDefinitions) @@ -107,6 +109,8 @@ true Level3 false + Use + commonheaders.h _DEBUG;%(PreprocessorDefinitions) @@ -135,6 +139,8 @@ Fast Level3 false + Use + commonheaders.h NDEBUG;%(PreprocessorDefinitions) @@ -166,6 +172,8 @@ Fast Level3 false + Use + commonheaders.h NDEBUG;%(PreprocessorDefinitions) @@ -189,15 +197,20 @@ + + Create + + + diff --git a/plugins/SimpleStatusMsg/simplestatusmsg_10.vcxproj.filters b/plugins/SimpleStatusMsg/simplestatusmsg_10.vcxproj.filters index c797e51b5e..c9e41148e2 100644 --- a/plugins/SimpleStatusMsg/simplestatusmsg_10.vcxproj.filters +++ b/plugins/SimpleStatusMsg/simplestatusmsg_10.vcxproj.filters @@ -30,6 +30,9 @@ Source Files + + Source Files + @@ -41,10 +44,16 @@ Header Files + + Header Files + Resource Files + + Resource Files + \ No newline at end of file diff --git a/plugins/SimpleStatusMsg/simplestatusmsg_11.vcxproj b/plugins/SimpleStatusMsg/simplestatusmsg_11.vcxproj index bc37126e23..d0c95bec3d 100644 --- a/plugins/SimpleStatusMsg/simplestatusmsg_11.vcxproj +++ b/plugins/SimpleStatusMsg/simplestatusmsg_11.vcxproj @@ -85,6 +85,8 @@ Level3 EditAndContinue false + Use + commonheaders.h _DEBUG;%(PreprocessorDefinitions) @@ -111,6 +113,8 @@ true Level3 false + Use + commonheaders.h _DEBUG;%(PreprocessorDefinitions) @@ -139,6 +143,8 @@ Fast Level3 false + Use + commonheaders.h NDEBUG;%(PreprocessorDefinitions) @@ -170,6 +176,8 @@ Fast Level3 false + Use + commonheaders.h NDEBUG;%(PreprocessorDefinitions) @@ -193,15 +201,20 @@ + + Create + + + diff --git a/plugins/SimpleStatusMsg/simplestatusmsg_11.vcxproj.filters b/plugins/SimpleStatusMsg/simplestatusmsg_11.vcxproj.filters index c797e51b5e..c9e41148e2 100644 --- a/plugins/SimpleStatusMsg/simplestatusmsg_11.vcxproj.filters +++ b/plugins/SimpleStatusMsg/simplestatusmsg_11.vcxproj.filters @@ -30,6 +30,9 @@ Source Files + + Source Files + @@ -41,10 +44,16 @@ Header Files + + Header Files + Resource Files + + Resource Files + \ No newline at end of file diff --git a/plugins/SimpleStatusMsg/src/Version.h b/plugins/SimpleStatusMsg/src/Version.h new file mode 100644 index 0000000000..8202a98614 --- /dev/null +++ b/plugins/SimpleStatusMsg/src/Version.h @@ -0,0 +1,14 @@ +#define __MAJOR_VERSION 1 +#define __MINOR_VERSION 9 +#define __RELEASE_NUM 0 +#define __BUILD_NUM 4 + +#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM + +#define __PLUGIN_NAME "Simple status message" +#define __FILENAME "SimpleStatusMsg.dll" +#define __DESCRIPTION "Provides a simple way to set status and away messages." +#define __AUTHOR "Bartosz 'Dezeath' Białek, Harven" +#define __AUTHOREMAIL "dezred@gmail.com" +#define __AUTHORWEB "http://miranda-ng.org/" +#define __COPYRIGHT "© 2006-2011 Bartosz Białek, 2005 Harven" diff --git a/plugins/SimpleStatusMsg/src/awaymsg.cpp b/plugins/SimpleStatusMsg/src/awaymsg.cpp index c4954e77dd..60d26d3b56 100644 --- a/plugins/SimpleStatusMsg/src/awaymsg.cpp +++ b/plugins/SimpleStatusMsg/src/awaymsg.cpp @@ -23,8 +23,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ + #include "commonheaders.h" -#include "simplestatusmsg.h" static HANDLE hAwayMsgMenuItem; static HANDLE hCopyMsgMenuItem; diff --git a/plugins/SimpleStatusMsg/src/commonheaders.h b/plugins/SimpleStatusMsg/src/commonheaders.h index 843a3555fa..5b6128774c 100644 --- a/plugins/SimpleStatusMsg/src/commonheaders.h +++ b/plugins/SimpleStatusMsg/src/commonheaders.h @@ -18,48 +18,45 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -// to enable all 0.9.0 core functions -#define MIRANDA_VER 0x0A00 -// to enable custom langpacks -#define MIRANDA_CUSTOM_LP - #define _WIN32_IE 0x0501 #define _CRT_SECURE_NO_WARNINGS -#include - #include -#include -#include -#include #include #include -#include -#include #include #include -#include #include #include #include -#include #include #include #include #include -#include #include #include #include -#include "../../protocols/IcqOscarJ/src/icq_constants.h" -#include "m_fortunemsg.h" -#include "m_statusplugins.h" -#include "m_toptoolbar.h" -#include "m_variables.h" -#include "m_simpleaway.h" -#include "m_simplestatusmsg.h" +#include +#include +#include +#include +#include +#include +#include "simplestatusmsg.h" #include "resource.h" +#include "Version.h" + +#define MTYPE_AUTOONLINE 0xE7 // Auto online message (internal only) +#define MTYPE_AUTOAWAY 0xE8 // Auto away message +#define MTYPE_AUTOBUSY 0xE9 // Auto occupied message +#define MTYPE_AUTONA 0xEA // Auto not available message +#define MTYPE_AUTODND 0xEB // Auto do not disturb message +#define MTYPE_AUTOFFC 0xEC // Auto free for chat message + +extern UINT_PTR g_uUpdateMsgTimer; +extern VOID CALLBACK UpdateMsgTimerProc(HWND, UINT, UINT_PTR, DWORD); +extern VOID APIENTRY HandlePopupMenu(HWND hwnd, POINT pt, HWND edit_control); diff --git a/plugins/SimpleStatusMsg/src/main.cpp b/plugins/SimpleStatusMsg/src/main.cpp index 95213ff9c3..61328bad26 100644 --- a/plugins/SimpleStatusMsg/src/main.cpp +++ b/plugins/SimpleStatusMsg/src/main.cpp @@ -17,9 +17,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ + #include "commonheaders.h" -#include "simplestatusmsg.h" -#include HINSTANCE g_hInst; @@ -35,16 +34,16 @@ static HANDLE *hProtoStatusMenuItem; PLUGININFOEX pluginInfo = { sizeof(PLUGININFOEX), - "Simple Status Message", - PLUGIN_MAKE_VERSION(1, 9, 0, 4), - "Provides a simple way to set status and away messages.", - "Bartosz 'Dezeath' Białek, Harven", - "dezred"/*antispam*/"@"/*antispam*/"gmail"/*antispam*/"."/*antispam*/"com", - "© 2006-2011 Bartosz Białek, © 2005 Harven", - "http://miranda-ng.org/", + __PLUGIN_NAME, + PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), + __DESCRIPTION, + __AUTHOR, + __AUTHOREMAIL, + __COPYRIGHT, + __AUTHORWEB, UNICODE_AWARE, - // {768CE156-34AC-45a3-B53B-0083C47615C4} - { 0x768ce156, 0x34ac, 0x45a3, { 0xb5, 0x3b, 0x0, 0x83, 0xc4, 0x76, 0x15, 0xc4 } } + // {768CE156-34AC-45A3-B53B-0083C47615C4} + {0x768ce156, 0x34ac, 0x45a3, {0xb5, 0x3b, 0x0, 0x83, 0xc4, 0x76, 0x15, 0xc4}} }; BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) diff --git a/plugins/SimpleStatusMsg/src/msgbox.cpp b/plugins/SimpleStatusMsg/src/msgbox.cpp index 15f7bfb487..240c26a441 100644 --- a/plugins/SimpleStatusMsg/src/msgbox.cpp +++ b/plugins/SimpleStatusMsg/src/msgbox.cpp @@ -17,8 +17,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ + #include "commonheaders.h" -#include "simplestatusmsg.h" #define I_ICON_DEL 0 #define I_ICON_HIST 1 diff --git a/plugins/SimpleStatusMsg/src/options.cpp b/plugins/SimpleStatusMsg/src/options.cpp index 76928064f3..4aef49ef2d 100644 --- a/plugins/SimpleStatusMsg/src/options.cpp +++ b/plugins/SimpleStatusMsg/src/options.cpp @@ -17,12 +17,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "commonheaders.h" -#include "simplestatusmsg.h" -extern UINT_PTR g_uUpdateMsgTimer; -extern VOID CALLBACK UpdateMsgTimerProc(HWND, UINT, UINT_PTR, DWORD); -extern VOID APIENTRY HandlePopupMenu(HWND hwnd, POINT pt, HWND edit_control); +#include "commonheaders.h" static void RebuildStatusMenu(void) { diff --git a/plugins/SimpleStatusMsg/src/simplestatusmsg.h b/plugins/SimpleStatusMsg/src/simplestatusmsg.h index 95b3311273..f78f04dcbc 100644 --- a/plugins/SimpleStatusMsg/src/simplestatusmsg.h +++ b/plugins/SimpleStatusMsg/src/simplestatusmsg.h @@ -17,6 +17,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ + #ifndef SIMPLESTATUSMSG_H__ #define SIMPLESTATUSMSG_H__ 1 diff --git a/plugins/SimpleStatusMsg/src/stdafx.cpp b/plugins/SimpleStatusMsg/src/stdafx.cpp new file mode 100644 index 0000000000..e7e41dae3c --- /dev/null +++ b/plugins/SimpleStatusMsg/src/stdafx.cpp @@ -0,0 +1,18 @@ +/* +Copyright (C) 2012-13 Miranda NG Project (http://miranda-ng.org) + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation version 2 +of the License. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ + +#include "commonheaders.h" \ No newline at end of file diff --git a/plugins/SimpleStatusMsg/src/utils.cpp b/plugins/SimpleStatusMsg/src/utils.cpp index a6ff747867..7632dc1cf3 100644 --- a/plugins/SimpleStatusMsg/src/utils.cpp +++ b/plugins/SimpleStatusMsg/src/utils.cpp @@ -17,8 +17,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ + #include "commonheaders.h" -#include "simplestatusmsg.h" static LIST arProtoHooks(5); -- cgit v1.2.3