From d777d359facf9995741a3c96c12bcd60dbac04ee Mon Sep 17 00:00:00 2001
From: Kirill Volinsky <mataes2007@gmail.com>
Date: Sat, 1 Aug 2015 19:09:50 +0000
Subject: tabsrmm: common project

git-svn-id: http://svn.miranda-ng.org/main/trunk@14787 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
---
 plugins/TabSRMM/src/ImageDataObject.cpp     |   2 +-
 plugins/TabSRMM/src/TSButton.cpp            |   2 +-
 plugins/TabSRMM/src/buttonsbar.cpp          |   2 +-
 plugins/TabSRMM/src/chat/log.cpp            |   2 +-
 plugins/TabSRMM/src/chat/main.cpp           |   2 +-
 plugins/TabSRMM/src/chat/manager.cpp        |   2 +-
 plugins/TabSRMM/src/chat/muchighlight.cpp   |   2 +-
 plugins/TabSRMM/src/chat/options.cpp        |   2 +-
 plugins/TabSRMM/src/chat/services.cpp       |   2 +-
 plugins/TabSRMM/src/chat/tools.cpp          |   2 +-
 plugins/TabSRMM/src/chat/window.cpp         |   2 +-
 plugins/TabSRMM/src/commonheaders.h         | 290 ----------------------------
 plugins/TabSRMM/src/contactcache.cpp        |   2 +-
 plugins/TabSRMM/src/container.cpp           |   2 +-
 plugins/TabSRMM/src/containeroptions.cpp    |   2 +-
 plugins/TabSRMM/src/controls.cpp            |   2 +-
 plugins/TabSRMM/src/eventpopups.cpp         |   2 +-
 plugins/TabSRMM/src/generic_msghandlers.cpp |   2 +-
 plugins/TabSRMM/src/globals.cpp             |   2 +-
 plugins/TabSRMM/src/hotkeyhandler.cpp       |   2 +-
 plugins/TabSRMM/src/infopanel.cpp           |   2 +-
 plugins/TabSRMM/src/mim.cpp                 |   2 +-
 plugins/TabSRMM/src/modplus.cpp             |   2 +-
 plugins/TabSRMM/src/msgdialog.cpp           |   2 +-
 plugins/TabSRMM/src/msgdlgutils.cpp         |   2 +-
 plugins/TabSRMM/src/msglog.cpp              |   2 +-
 plugins/TabSRMM/src/msgoptions.cpp          |   2 +-
 plugins/TabSRMM/src/msgs.cpp                |   2 +-
 plugins/TabSRMM/src/selectcontainer.cpp     |   2 +-
 plugins/TabSRMM/src/sendlater.cpp           |   2 +-
 plugins/TabSRMM/src/sendqueue.cpp           |   2 +-
 plugins/TabSRMM/src/sidebar.cpp             |   2 +-
 plugins/TabSRMM/src/srmm.cpp                |   2 +-
 plugins/TabSRMM/src/stdafx.cpp              |  18 --
 plugins/TabSRMM/src/stdafx.cxx              |  18 ++
 plugins/TabSRMM/src/stdafx.h                | 290 ++++++++++++++++++++++++++++
 plugins/TabSRMM/src/tabctrl.cpp             |   2 +-
 plugins/TabSRMM/src/taskbar.cpp             |   2 +-
 plugins/TabSRMM/src/templates.cpp           |   2 +-
 plugins/TabSRMM/src/themeio.cpp             |   2 +-
 plugins/TabSRMM/src/themes.cpp              |   2 +-
 plugins/TabSRMM/src/translator.cpp          |   2 +-
 plugins/TabSRMM/src/trayicon.cpp            |   2 +-
 plugins/TabSRMM/src/typingnotify.cpp        |   2 +-
 plugins/TabSRMM/src/userprefs.cpp           |   2 +-
 plugins/TabSRMM/src/utils.cpp               |   2 +-
 46 files changed, 350 insertions(+), 350 deletions(-)
 delete mode 100644 plugins/TabSRMM/src/commonheaders.h
 delete mode 100644 plugins/TabSRMM/src/stdafx.cpp
 create mode 100644 plugins/TabSRMM/src/stdafx.cxx
 create mode 100644 plugins/TabSRMM/src/stdafx.h

(limited to 'plugins/TabSRMM/src')

diff --git a/plugins/TabSRMM/src/ImageDataObject.cpp b/plugins/TabSRMM/src/ImageDataObject.cpp
index a62ab5fc28..f7b9a5b23b 100644
--- a/plugins/TabSRMM/src/ImageDataObject.cpp
+++ b/plugins/TabSRMM/src/ImageDataObject.cpp
@@ -29,7 +29,7 @@
 //
 // originally part of the smileyadd plugin for Miranda NG
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 extern void ReleaseRichEditOle(IRichEditOle *ole)
 {
diff --git a/plugins/TabSRMM/src/TSButton.cpp b/plugins/TabSRMM/src/TSButton.cpp
index 9d319e8587..af010d17b8 100644
--- a/plugins/TabSRMM/src/TSButton.cpp
+++ b/plugins/TabSRMM/src/TSButton.cpp
@@ -26,7 +26,7 @@
 //
 // A skinnable button class for tabSRMM.
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 #define PBS_PUSHDOWNPRESSED 6
 
diff --git a/plugins/TabSRMM/src/buttonsbar.cpp b/plugins/TabSRMM/src/buttonsbar.cpp
index aacbf87311..ef5282868a 100644
--- a/plugins/TabSRMM/src/buttonsbar.cpp
+++ b/plugins/TabSRMM/src/buttonsbar.cpp
@@ -1,4 +1,4 @@
-#include "commonheaders.h"
+#include "stdafx.h"
 
 #define BBSF_IMBUTTON		(1<<0)
 #define BBSF_CHATBUTTON		(1<<1)
diff --git a/plugins/TabSRMM/src/chat/log.cpp b/plugins/TabSRMM/src/chat/log.cpp
index 0b6fadcd20..9e2a5c573e 100644
--- a/plugins/TabSRMM/src/chat/log.cpp
+++ b/plugins/TabSRMM/src/chat/log.cpp
@@ -27,7 +27,7 @@
 // Implements the richedit-based message history display for the group
 // chat window.
 
-#include "..\commonheaders.h"
+#include "..\stdafx.h"
 
 /*
  * The code for streaming the text is to a large extent copied from
diff --git a/plugins/TabSRMM/src/chat/main.cpp b/plugins/TabSRMM/src/chat/main.cpp
index 5b077eda95..9ac88e10b5 100644
--- a/plugins/TabSRMM/src/chat/main.cpp
+++ b/plugins/TabSRMM/src/chat/main.cpp
@@ -26,7 +26,7 @@
 //
 // chat module exports and functions to load/unload the plugin.
 
-#include "..\commonheaders.h"
+#include "..\stdafx.h"
 
 HANDLE g_hWindowList;
 HMENU  g_hMenu = NULL;
diff --git a/plugins/TabSRMM/src/chat/manager.cpp b/plugins/TabSRMM/src/chat/manager.cpp
index 0c8302e101..21d51c7979 100644
--- a/plugins/TabSRMM/src/chat/manager.cpp
+++ b/plugins/TabSRMM/src/chat/manager.cpp
@@ -24,7 +24,7 @@
 //
 // (C) 2005-2010 by silvercircle _at_ gmail _dot_ com and contributors
 
-#include "..\commonheaders.h"
+#include "..\stdafx.h"
 
 static int sttCompareNicknames(const TCHAR *s1, const TCHAR *s2)
 {
diff --git a/plugins/TabSRMM/src/chat/muchighlight.cpp b/plugins/TabSRMM/src/chat/muchighlight.cpp
index 484065caf2..cef2d0b66e 100644
--- a/plugins/TabSRMM/src/chat/muchighlight.cpp
+++ b/plugins/TabSRMM/src/chat/muchighlight.cpp
@@ -26,7 +26,7 @@
 //
 // highlighter class for multi user chats
 
-#include "..\commonheaders.h"
+#include "..\stdafx.h"
 
 void CMUCHighlight::cleanup()
 {
diff --git a/plugins/TabSRMM/src/chat/options.cpp b/plugins/TabSRMM/src/chat/options.cpp
index 45e7c0bd19..cba62770ff 100644
--- a/plugins/TabSRMM/src/chat/options.cpp
+++ b/plugins/TabSRMM/src/chat/options.cpp
@@ -26,7 +26,7 @@
 //
 // group chat options and generic font handling
 
-#include "..\commonheaders.h"
+#include "..\stdafx.h"
 
 #define FONTF_BOLD   1
 #define FONTF_ITALIC 2
diff --git a/plugins/TabSRMM/src/chat/services.cpp b/plugins/TabSRMM/src/chat/services.cpp
index a638836b7e..918f5d5524 100644
--- a/plugins/TabSRMM/src/chat/services.cpp
+++ b/plugins/TabSRMM/src/chat/services.cpp
@@ -26,7 +26,7 @@
 //
 // This implements the services that form the group chat API
 
-#include "..\commonheaders.h"
+#include "..\stdafx.h"
 
 HWND CreateNewRoom(TContainerData *pContainer, SESSION_INFO *si, BOOL bActivateTab, BOOL bPopupContainer, BOOL bWantPopup)
 {
diff --git a/plugins/TabSRMM/src/chat/tools.cpp b/plugins/TabSRMM/src/chat/tools.cpp
index c9e5e5cfd7..235c38c5e0 100644
--- a/plugins/TabSRMM/src/chat/tools.cpp
+++ b/plugins/TabSRMM/src/chat/tools.cpp
@@ -26,7 +26,7 @@
 //
 // Helper functions for the group chat module.
 
-#include "..\commonheaders.h"
+#include "..\stdafx.h"
 
 int GetRichTextLength(HWND hwnd)
 {
diff --git a/plugins/TabSRMM/src/chat/window.cpp b/plugins/TabSRMM/src/chat/window.cpp
index 4197ca245b..e827e9ddfd 100644
--- a/plugins/TabSRMM/src/chat/window.cpp
+++ b/plugins/TabSRMM/src/chat/window.cpp
@@ -26,7 +26,7 @@
 //
 // This implements the group chat dialog window
 
-#include "..\commonheaders.h"
+#include "..\stdafx.h"
 
 // externs...
 extern LRESULT CALLBACK SplitterSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
diff --git a/plugins/TabSRMM/src/commonheaders.h b/plugins/TabSRMM/src/commonheaders.h
deleted file mode 100644
index dd1417ab60..0000000000
--- a/plugins/TabSRMM/src/commonheaders.h
+++ /dev/null
@@ -1,290 +0,0 @@
-/////////////////////////////////////////////////////////////////////////////////////////
-// Miranda NG: the free IM client for Microsoft* Windows*
-//
-// Copyright (�) 2012-15 Miranda NG project,
-// Copyright (c) 2000-09 Miranda ICQ/IM project,
-// all portions of this codebase are copyrighted to the people
-// listed in contributors.txt.
-//
-// 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; either version 2
-// of the License, or (at your option) any later version.
-//
-// 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, write to the Free Software
-// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
-//
-// part of tabSRMM messaging plugin for Miranda.
-//
-// (C) 2005-2010 by silvercircle _at_ gmail _dot_ com and contributors
-//
-// global include file, used to build the precompiled header.
-
-#ifndef __COMMONHEADERS_H
-#define __COMMONHEADERS_H
-
-#include <windows.h>
-#include <windowsx.h>
-#include <commdlg.h>
-#include <shellapi.h>
-#include <uxtheme.h>
-#include <tom.h>
-#include <shlwapi.h>
-#include <shlobj.h>
-#include <richedit.h>
-#include <richole.h>
-
-#include <assert.h>
-#include <time.h>
-#include <mbstring.h>
-#include <malloc.h>
-#include <locale.h>
-
-#include <msapi\vsstyle.h>
-#include <m_avatars.h>
-#include <m_message.h>
-#include <win2k.h>
-#include <newpluginapi.h>
-#include <m_imgsrvc.h>
-#include <m_database.h>
-#include <m_langpack.h>
-#include <m_button_int.h>
-#include <m_protosvc.h>
-#include <m_skin.h>
-#include <m_contacts.h>
-#include <m_icolib.h>
-#include <m_clc.h>
-#include <m_clui.h>
-#include <m_clist.h>
-#include <m_userinfo.h>
-#include <m_history.h>
-#include <m_addcontact.h>
-#include <m_file.h>
-#include <m_fontservice.h>
-#include <m_acc.h>
-#include <m_chat_int.h>
-#include <m_hotkeys.h>
-#include <m_genmenu.h>
-#include <m_popup.h>
-#include <m_timezones.h>
-#include <m_modernopt.h>
-#include <m_xstatus.h>
-#include <m_toptoolbar.h>
-#include <m_string.h>
-#include <m_db_int.h>
-#include <m_netlib.h>
-
-#include <m_ieview.h>
-#include <m_metacontacts.h>
-#include <m_fingerprint.h>
-#include <m_nudge.h>
-#include <m_folders.h>
-#include <m_msg_buttonsbar.h>
-#include <m_smileyadd.h>
-
-#define TSAPI __stdcall
-#define FASTCALL __fastcall
-
-typedef HANDLE HTHUMBNAIL;
-typedef HTHUMBNAIL* PHTHUMBNAIL;
-
-typedef struct _DWM_BLURBEHIND
-{
-	DWORD dwFlags;
-	BOOL fEnable;
-	HRGN hRgnBlur;
-	BOOL fTransitionOnMaximized;
-} DWM_BLURBEHIND, *PDWM_BLURBEHIND;
-
-typedef struct _DWM_THUMBNAIL_PROPERTIES
-{
-	DWORD dwFlags;
-	RECT rcDestination;
-	RECT rcSource;
-	BYTE opacity;
-	BOOL fVisible;
-	BOOL fSourceClientAreaOnly;
-} DWM_THUMBNAIL_PROPERTIES, *PDWM_THUMBNAIL_PROPERTIES;
-
-#include "resource.h"
-#include "version.h"
-#include "buttonbar.h"
-#include "msgs.h"
-#include "msgdlgutils.h"
-#include "typingnotify.h"
-#include "generic_msghandlers.h"
-#include "nen.h"
-#include "functions.h"
-#include "chat/chat.h"
-#include "contactcache.h"
-#include "translator.h"
-#include "themes.h"
-#include "globals.h"
-#include "mim.h"
-#include "sendqueue.h"
-#include "taskbar.h"
-#include "controls.h"
-#include "infopanel.h"
-#include "sidebar.h"
-#include "utils.h"
-#include "sendlater.h"
-#include "ImageDataObject.h"
-#include "chat/muchighlight.h"
-
-
-/*
-* text shadow types (DrawThemeTextEx() / Vista+ uxtheme)
-*/
-#define TST_NONE			0
-#define TST_SINGLE			1
-#define TST_CONTINUOUS		2
-
-enum DWMWINDOWATTRIBUTE
-{
-	DWMWA_NCRENDERING_ENABLED = 1,      // [get] Is non-client rendering enabled/disabled
-	DWMWA_NCRENDERING_POLICY,           // [set] Non-client rendering policy
-	DWMWA_TRANSITIONS_FORCEDISABLED,    // [set] Potentially enable/forcibly disable transitions
-	DWMWA_ALLOW_NCPAINT,                // [set] Allow contents rendered in the non-client area to be visible on the DWM-drawn frame.
-	DWMWA_CAPTION_BUTTON_BOUNDS,        // [get] Bounds of the caption button area in window-relative space.
-	DWMWA_NONCLIENT_RTL_LAYOUT,         // [set] Is non-client content RTL mirrored
-	DWMWA_FORCE_ICONIC_REPRESENTATION,  // [set] Force this window to display iconic thumbnails.
-	DWMWA_FLIP3D_POLICY,                // [set] Designates how Flip3D will treat the window.
-	DWMWA_EXTENDED_FRAME_BOUNDS,        // [get] Gets the extended frame bounds rectangle in screen space
-	DWMWA_HAS_ICONIC_BITMAP,            // [set] Indicates an available bitmap when there is no better thumbnail representation.
-	DWMWA_DISALLOW_PEEK,                // [set] Don't invoke Peek on the window.
-	DWMWA_EXCLUDED_FROM_PEEK,           // [set] LivePreview exclusion information
-	DWMWA_LAST
-};
-
-#define DWM_TNP_RECTDESTINATION	0x00000001
-#define DWM_TNP_RECTSOURCE 0x00000002
-#define DWM_TNP_OPACITY	0x00000004
-#define DWM_TNP_VISIBLE	0x00000008
-#define DWM_TNP_SOURCECLIENTAREAONLY 0x00000010
-
-#define DWM_SIT_DISPLAYFRAME    0x00000001  // Display a window frame around the provided bitmap
-
-
-#ifndef BPPF_ERASE
-typedef enum _BP_BUFFERFORMAT
-{
-	BPBF_COMPATIBLEBITMAP,    // Compatible bitmap
-	BPBF_DIB,                 // Device-independent bitmap
-	BPBF_TOPDOWNDIB,          // Top-down device-independent bitmap
-	BPBF_TOPDOWNMONODIB       // Top-down monochrome device-independent bitmap
-} BP_BUFFERFORMAT;
-
-
-typedef struct _BP_PAINTPARAMS
-{
-	DWORD                       cbSize;
-	DWORD                       dwFlags; // BPPF_ flags
-	const RECT            *     prcExclude;
-	const BLENDFUNCTION        * pBlendFunction;
-} BP_PAINTPARAMS, *PBP_PAINTPARAMS;
-
-#define BPPF_ERASE               1
-#define BPPF_NOCLIP              2
-#define BPPF_NONCLIENT           4
-#endif
-
-
-#define DWM_BB_ENABLE 1
-
-#ifndef LOCALE_SISO3166CTRYNAME2
-#define LOCALE_SISO3166CTRYNAME2      0x00000068   // 3 character ISO country name, eg "USA Vista+
-#define LOCALE_SISO639LANGNAME2       0x00000067   // 3 character ISO abbreviated language name, eg "eng"
-#endif
-
-#ifndef WM_DWMCOMPOSITIONCHANGED
-#define WM_DWMCOMPOSITIONCHANGED        0x031E
-#define WM_DWMCOLORIZATIONCOLORCHANGED  0x0320
-#endif
-
-#ifndef WM_DWMSENDICONICTHUMBNAIL
-#define WM_DWMSENDICONICTHUMBNAIL           0x0323
-#define WM_DWMSENDICONICLIVEPREVIEWBITMAP   0x0326
-#endif
-
-#if !defined(_WIN64) && !defined(_USE_32BIT_TIME_T)
-#define _USE_32BIT_TIME_T
-#else
-#undef _USE_32BIT_TIME_T
-#endif
-
-extern NEN_OPTIONS nen_options;
-extern HINSTANCE g_hInst;
-extern CSkinItem SkinItems[];
-extern TContainerData *pFirstContainer, *pLastActiveContainer;
-extern HANDLE hTypingNotify;
-extern ButtonSet g_ButtonSet;
-extern HANDLE g_hEvent;
-extern RECT rcLastStatusBarClick;
-extern PLUGININFOEX pluginInfo;
-extern TTemplateSet RTL_Active, LTR_Active;
-extern LOGFONTA logfonts[MSGDLGFONTCOUNT + 2];
-extern COLORREF fontcolors[MSGDLGFONTCOUNT + 2];
-extern HINSTANCE hinstance;
-extern BOOL g_bIMGtagButton;
-extern HANDLE hHookToolBarLoadedEvt;
-extern TLogIcon msgLogIcons[NR_LOGICONS * 3];
-extern const TCHAR *pszIDCSAVE_save, *pszIDCSAVE_close;
-extern char *TemplateNames[];
-extern HANDLE hUserPrefsWindowList;
-extern TCpTable cpTable[];
-extern HMODULE g_hIconDLL;
-extern HMENU g_hMenu;
-extern bool g_bShutdown;
-
-extern CREOleCallback reOleCallback;
-extern CREOleCallback2 reOleCallback2;
-
-int  LoadSendRecvMessageModule(void);
-int  SplitmsgShutdown(void);
-void LogErrorMessage(HWND hwndDlg, TWindowData *dat, int i, TCHAR *szMsg);
-int  Chat_Load(), Chat_Unload();
-void FreeLogFonts();
-void ImageDataInsertBitmap(IRichEditOle *ole, HBITMAP hBm);
-int  CacheIconToBMP(TLogIcon *theIcon, HICON hIcon, COLORREF backgroundColor, int sizeX, int sizeY);
-void DeleteCachedIcon(TLogIcon *theIcon);
-
-INT_PTR SendMessageCommand(WPARAM wParam, LPARAM lParam);
-INT_PTR SendMessageCommand_W(WPARAM wParam, LPARAM lParam);
-
-
-#define IMG_NOCHECK	0
-#define IMG_CHECK	1
-#define IMG_GRPOPEN	2
-#define IMG_GRPCLOSED	3
-HIMAGELIST CreateStateImageList();
-void TreeViewInit(HWND hwndTree, UINT id, DWORD dwFlags, BOOL bFromMem);
-void TreeViewDestroy(HWND hwndTree);
-void TreeViewSetFromDB(HWND hwndTree, UINT id, DWORD dwFlags);
-void TreeViewToDB(HWND hwndTree, UINT id, char *DBPath, DWORD *dwFlags);
-BOOL TreeViewHandleClick(HWND hwndDlg, HWND hwndTree, WPARAM wParam, LPARAM lParam);
-
-
-INT_PTR CALLBACK DlgProcSetupStatusModes(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
-INT_PTR CALLBACK DlgProcPopupOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
-INT_PTR CALLBACK DlgProcTabConfig(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
-INT_PTR CALLBACK DlgProcTemplateEditor(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
-INT_PTR CALLBACK DlgProcToolBar(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
-INT_PTR CALLBACK PlusOptionsProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
-INT_PTR CALLBACK DlgProcOptions1(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
-INT_PTR CALLBACK DlgProcOptions2(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
-INT_PTR CALLBACK DlgProcOptions3(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
-INT_PTR CALLBACK DlgProcUserPrefsFrame(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
-
-int TSAPI TBStateConvert2Flat(int state);
-int TSAPI RBStateConvert2Flat(int state);
-void TSAPI FillTabBackground(const HDC hdc, int iStateId, const TWindowData *dat, RECT* rc);
-
-#define IS_EXTKEY(a) (a & (1 << 24))
-
-#endif /* __COMMONHEADERS_H */
diff --git a/plugins/TabSRMM/src/contactcache.cpp b/plugins/TabSRMM/src/contactcache.cpp
index 861991a6d1..0787ab83e0 100644
--- a/plugins/TabSRMM/src/contactcache.cpp
+++ b/plugins/TabSRMM/src/contactcache.cpp
@@ -29,7 +29,7 @@
 // the contact cache provides various services to the message window(s)
 // it also abstracts meta contacts.
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 static OBJLIST<CContactCache> arContacts(50, NumericKeySortT);
 
diff --git a/plugins/TabSRMM/src/container.cpp b/plugins/TabSRMM/src/container.cpp
index eee8436feb..01ce09a027 100644
--- a/plugins/TabSRMM/src/container.cpp
+++ b/plugins/TabSRMM/src/container.cpp
@@ -27,7 +27,7 @@
 // implements the "Container" window which acts as a toplevel window
 // for message sessions.
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 #define CONTAINER_KEY "TAB_ContainersW"
 #define CONTAINER_SUBKEY "containerW"
diff --git a/plugins/TabSRMM/src/containeroptions.cpp b/plugins/TabSRMM/src/containeroptions.cpp
index d2ee534799..dcf7ea9172 100644
--- a/plugins/TabSRMM/src/containeroptions.cpp
+++ b/plugins/TabSRMM/src/containeroptions.cpp
@@ -26,7 +26,7 @@
 //
 // The dialog to customize per container options
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 static void MY_CheckDlgButton(HWND hWnd, UINT id, int iCheck)
 {
diff --git a/plugins/TabSRMM/src/controls.cpp b/plugins/TabSRMM/src/controls.cpp
index eb0daf2b79..b60336331a 100644
--- a/plugins/TabSRMM/src/controls.cpp
+++ b/plugins/TabSRMM/src/controls.cpp
@@ -26,7 +26,7 @@
 //
 // Menu and status bar control(s) for the container window.
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 static    WNDPROC OldStatusBarproc = 0;
 
diff --git a/plugins/TabSRMM/src/eventpopups.cpp b/plugins/TabSRMM/src/eventpopups.cpp
index 4074f5966c..68a3918fbb 100644
--- a/plugins/TabSRMM/src/eventpopups.cpp
+++ b/plugins/TabSRMM/src/eventpopups.cpp
@@ -34,7 +34,7 @@
 // 	Date: 18.07.02 13:59 / Update: 16.09.02 17:45
 // 	Copyright: (C) 2002 Starzinger Michael
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 static int TSAPI PopupPreview(NEN_OPTIONS *pluginOptions);
 
diff --git a/plugins/TabSRMM/src/generic_msghandlers.cpp b/plugins/TabSRMM/src/generic_msghandlers.cpp
index 63e5b69e49..13168f2bf6 100644
--- a/plugins/TabSRMM/src/generic_msghandlers.cpp
+++ b/plugins/TabSRMM/src/generic_msghandlers.cpp
@@ -28,7 +28,7 @@
 // calling them directly instead of using SendMessage() is faster.
 // also contains various callback functions for custom buttons
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 /////////////////////////////////////////////////////////////////////////////////////////
 // Save message log for given session as RTF document
diff --git a/plugins/TabSRMM/src/globals.cpp b/plugins/TabSRMM/src/globals.cpp
index 0134d30f61..c160c0cc6d 100644
--- a/plugins/TabSRMM/src/globals.cpp
+++ b/plugins/TabSRMM/src/globals.cpp
@@ -27,7 +27,7 @@
 // Plugin configuration variables and functions. Implemented as a class
 // though there will always be only a single instance.
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 void Chat_ModulesLoaded();
 
diff --git a/plugins/TabSRMM/src/hotkeyhandler.cpp b/plugins/TabSRMM/src/hotkeyhandler.cpp
index 5d180f3694..06b4c8a32e 100644
--- a/plugins/TabSRMM/src/hotkeyhandler.cpp
+++ b/plugins/TabSRMM/src/hotkeyhandler.cpp
@@ -34,7 +34,7 @@
 //    c) send later job management. Periodically process the queue of open
 //	   deferred send jobs.
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 static UINT 	WM_TASKBARCREATED;
 static HANDLE 	hSvcHotkeyProcessor = 0;
diff --git a/plugins/TabSRMM/src/infopanel.cpp b/plugins/TabSRMM/src/infopanel.cpp
index 69d93b24a2..fa76e98c0c 100644
--- a/plugins/TabSRMM/src/infopanel.cpp
+++ b/plugins/TabSRMM/src/infopanel.cpp
@@ -26,7 +26,7 @@
 //
 // the info area for both im and chat sessions
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 TCHAR *xStatusDescr[] =
 {
diff --git a/plugins/TabSRMM/src/mim.cpp b/plugins/TabSRMM/src/mim.cpp
index aebd13aa89..514e204532 100644
--- a/plugins/TabSRMM/src/mim.cpp
+++ b/plugins/TabSRMM/src/mim.cpp
@@ -27,7 +27,7 @@
 // wraps some parts of Miranda API
 // Also, OS dependent stuff (visual styles api etc.)
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 PDTTE  CMimAPI::m_pfnDrawThemeTextEx = 0;
 DEFICA CMimAPI::m_pfnDwmExtendFrameIntoClientArea = 0;
diff --git a/plugins/TabSRMM/src/modplus.cpp b/plugins/TabSRMM/src/modplus.cpp
index ce0537289c..04b8cea8dd 100644
--- a/plugins/TabSRMM/src/modplus.cpp
+++ b/plugins/TabSRMM/src/modplus.cpp
@@ -38,7 +38,7 @@
 // ) client icon in status bar
 // ) close tab/window on send and the "hide container feature"
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 static TCHAR* getMenuEntry(int i)
 {
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp
index 7f39884afd..ab4d1c4b28 100644
--- a/plugins/TabSRMM/src/msgdialog.cpp
+++ b/plugins/TabSRMM/src/msgdialog.cpp
@@ -26,7 +26,7 @@
 //
 // implements the message dialog window.
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 #define MS_HTTPSERVER_ADDFILENAME "HTTPServer/AddFileName"
 
diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp
index 614a5aa83d..44671bf9c0 100644
--- a/plugins/TabSRMM/src/msgdlgutils.cpp
+++ b/plugins/TabSRMM/src/msgdlgutils.cpp
@@ -26,7 +26,7 @@
 //
 // Helper functions for the message dialog.
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 #ifndef SHVIEW_THUMBNAIL
 #define SHVIEW_THUMBNAIL 0x702D
diff --git a/plugins/TabSRMM/src/msglog.cpp b/plugins/TabSRMM/src/msglog.cpp
index 525073e419..4a081e9c6d 100644
--- a/plugins/TabSRMM/src/msglog.cpp
+++ b/plugins/TabSRMM/src/msglog.cpp
@@ -26,7 +26,7 @@
 //
 // implements the richedit based message log and the template parser
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 struct TCpTable cpTable[] = {
 	{ 874, LPGENT("Thai") },
diff --git a/plugins/TabSRMM/src/msgoptions.cpp b/plugins/TabSRMM/src/msgoptions.cpp
index e7a4d1b23c..e73b29fc00 100644
--- a/plugins/TabSRMM/src/msgoptions.cpp
+++ b/plugins/TabSRMM/src/msgoptions.cpp
@@ -26,7 +26,7 @@
 //
 // Implementation of the option pages
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 #define DM_GETSTATUSMASK (WM_USER + 10)
 
diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp
index 32572530f1..5f7569d711 100644
--- a/plugins/TabSRMM/src/msgs.cpp
+++ b/plugins/TabSRMM/src/msgs.cpp
@@ -27,7 +27,7 @@
 // Load, setup and shutdown the plugin
 // core plugin messaging services (single IM chats only).
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 #define IDI_CORE_LOAD	132					// icon id for the "connecting" icon
 
diff --git a/plugins/TabSRMM/src/selectcontainer.cpp b/plugins/TabSRMM/src/selectcontainer.cpp
index ad76be6bb3..37d0646153 100644
--- a/plugins/TabSRMM/src/selectcontainer.cpp
+++ b/plugins/TabSRMM/src/selectcontainer.cpp
@@ -26,7 +26,7 @@
 //
 // dialog to manage containers (attaching sessions to containers etc.)
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 INT_PTR CALLBACK SelectContainerDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
 {
diff --git a/plugins/TabSRMM/src/sendlater.cpp b/plugins/TabSRMM/src/sendlater.cpp
index f2ef1b7f7e..0ae4b867f5 100644
--- a/plugins/TabSRMM/src/sendlater.cpp
+++ b/plugins/TabSRMM/src/sendlater.cpp
@@ -26,7 +26,7 @@
 //
 // the sendlater class implementation
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 CSendLater *sendLater = 0;
 
diff --git a/plugins/TabSRMM/src/sendqueue.cpp b/plugins/TabSRMM/src/sendqueue.cpp
index baecacb16e..ea7977b5c6 100644
--- a/plugins/TabSRMM/src/sendqueue.cpp
+++ b/plugins/TabSRMM/src/sendqueue.cpp
@@ -26,7 +26,7 @@
 //
 // Implements a queued, asynchronous sending system for tabSRMM.
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 SendQueue *sendQueue = 0;
 
diff --git a/plugins/TabSRMM/src/sidebar.cpp b/plugins/TabSRMM/src/sidebar.cpp
index 8ddd0c7f92..78c115590d 100644
--- a/plugins/TabSRMM/src/sidebar.cpp
+++ b/plugins/TabSRMM/src/sidebar.cpp
@@ -26,7 +26,7 @@
 //
 // the contact switch bar on the left (or right) side
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 TSideBarLayout CSideBar::m_layouts[CSideBar::NR_LAYOUTS] = {
 	{
diff --git a/plugins/TabSRMM/src/srmm.cpp b/plugins/TabSRMM/src/srmm.cpp
index 448d1c4d30..da2f462594 100644
--- a/plugins/TabSRMM/src/srmm.cpp
+++ b/plugins/TabSRMM/src/srmm.cpp
@@ -26,7 +26,7 @@
 //
 // plugin loading functions and global exports.
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 HINSTANCE g_hInst;
 LOGFONT lfDefault = { 0 };
diff --git a/plugins/TabSRMM/src/stdafx.cpp b/plugins/TabSRMM/src/stdafx.cpp
deleted file mode 100644
index 048b14e9d2..0000000000
--- a/plugins/TabSRMM/src/stdafx.cpp
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
-Copyright (C) 2012-15 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 <http://www.gnu.org/licenses/>.
-*/
-
-#include "commonheaders.h"
\ No newline at end of file
diff --git a/plugins/TabSRMM/src/stdafx.cxx b/plugins/TabSRMM/src/stdafx.cxx
new file mode 100644
index 0000000000..6fb37564b7
--- /dev/null
+++ b/plugins/TabSRMM/src/stdafx.cxx
@@ -0,0 +1,18 @@
+/*
+Copyright (C) 2012-15 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 <http://www.gnu.org/licenses/>.
+*/
+
+#include "stdafx.h"
\ No newline at end of file
diff --git a/plugins/TabSRMM/src/stdafx.h b/plugins/TabSRMM/src/stdafx.h
new file mode 100644
index 0000000000..a99f281609
--- /dev/null
+++ b/plugins/TabSRMM/src/stdafx.h
@@ -0,0 +1,290 @@
+/////////////////////////////////////////////////////////////////////////////////////////
+// Miranda NG: the free IM client for Microsoft* Windows*
+//
+// Copyright (�) 2012-15 Miranda NG project,
+// Copyright (c) 2000-09 Miranda ICQ/IM project,
+// all portions of this codebase are copyrighted to the people
+// listed in contributors.txt.
+//
+// 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; either version 2
+// of the License, or (at your option) any later version.
+//
+// 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, write to the Free Software
+// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+//
+// part of tabSRMM messaging plugin for Miranda.
+//
+// (C) 2005-2010 by silvercircle _at_ gmail _dot_ com and contributors
+//
+// global include file, used to build the precompiled header.
+
+#ifndef __stdafx_H
+#define __stdafx_H
+
+#include <windows.h>
+#include <windowsx.h>
+#include <commdlg.h>
+#include <shellapi.h>
+#include <uxtheme.h>
+#include <tom.h>
+#include <shlwapi.h>
+#include <shlobj.h>
+#include <richedit.h>
+#include <richole.h>
+
+#include <assert.h>
+#include <time.h>
+#include <mbstring.h>
+#include <malloc.h>
+#include <locale.h>
+
+#include <msapi\vsstyle.h>
+#include <m_avatars.h>
+#include <m_message.h>
+#include <win2k.h>
+#include <newpluginapi.h>
+#include <m_imgsrvc.h>
+#include <m_database.h>
+#include <m_langpack.h>
+#include <m_button_int.h>
+#include <m_protosvc.h>
+#include <m_skin.h>
+#include <m_contacts.h>
+#include <m_icolib.h>
+#include <m_clc.h>
+#include <m_clui.h>
+#include <m_clist.h>
+#include <m_userinfo.h>
+#include <m_history.h>
+#include <m_addcontact.h>
+#include <m_file.h>
+#include <m_fontservice.h>
+#include <m_acc.h>
+#include <m_chat_int.h>
+#include <m_hotkeys.h>
+#include <m_genmenu.h>
+#include <m_popup.h>
+#include <m_timezones.h>
+#include <m_modernopt.h>
+#include <m_xstatus.h>
+#include <m_toptoolbar.h>
+#include <m_string.h>
+#include <m_db_int.h>
+#include <m_netlib.h>
+
+#include <m_ieview.h>
+#include <m_metacontacts.h>
+#include <m_fingerprint.h>
+#include <m_nudge.h>
+#include <m_folders.h>
+#include <m_msg_buttonsbar.h>
+#include <m_smileyadd.h>
+
+#define TSAPI __stdcall
+#define FASTCALL __fastcall
+
+typedef HANDLE HTHUMBNAIL;
+typedef HTHUMBNAIL* PHTHUMBNAIL;
+
+typedef struct _DWM_BLURBEHIND
+{
+	DWORD dwFlags;
+	BOOL fEnable;
+	HRGN hRgnBlur;
+	BOOL fTransitionOnMaximized;
+} DWM_BLURBEHIND, *PDWM_BLURBEHIND;
+
+typedef struct _DWM_THUMBNAIL_PROPERTIES
+{
+	DWORD dwFlags;
+	RECT rcDestination;
+	RECT rcSource;
+	BYTE opacity;
+	BOOL fVisible;
+	BOOL fSourceClientAreaOnly;
+} DWM_THUMBNAIL_PROPERTIES, *PDWM_THUMBNAIL_PROPERTIES;
+
+#include "resource.h"
+#include "version.h"
+#include "buttonbar.h"
+#include "msgs.h"
+#include "msgdlgutils.h"
+#include "typingnotify.h"
+#include "generic_msghandlers.h"
+#include "nen.h"
+#include "functions.h"
+#include "chat/chat.h"
+#include "contactcache.h"
+#include "translator.h"
+#include "themes.h"
+#include "globals.h"
+#include "mim.h"
+#include "sendqueue.h"
+#include "taskbar.h"
+#include "controls.h"
+#include "infopanel.h"
+#include "sidebar.h"
+#include "utils.h"
+#include "sendlater.h"
+#include "ImageDataObject.h"
+#include "chat/muchighlight.h"
+
+
+/*
+* text shadow types (DrawThemeTextEx() / Vista+ uxtheme)
+*/
+#define TST_NONE			0
+#define TST_SINGLE			1
+#define TST_CONTINUOUS		2
+
+enum DWMWINDOWATTRIBUTE
+{
+	DWMWA_NCRENDERING_ENABLED = 1,      // [get] Is non-client rendering enabled/disabled
+	DWMWA_NCRENDERING_POLICY,           // [set] Non-client rendering policy
+	DWMWA_TRANSITIONS_FORCEDISABLED,    // [set] Potentially enable/forcibly disable transitions
+	DWMWA_ALLOW_NCPAINT,                // [set] Allow contents rendered in the non-client area to be visible on the DWM-drawn frame.
+	DWMWA_CAPTION_BUTTON_BOUNDS,        // [get] Bounds of the caption button area in window-relative space.
+	DWMWA_NONCLIENT_RTL_LAYOUT,         // [set] Is non-client content RTL mirrored
+	DWMWA_FORCE_ICONIC_REPRESENTATION,  // [set] Force this window to display iconic thumbnails.
+	DWMWA_FLIP3D_POLICY,                // [set] Designates how Flip3D will treat the window.
+	DWMWA_EXTENDED_FRAME_BOUNDS,        // [get] Gets the extended frame bounds rectangle in screen space
+	DWMWA_HAS_ICONIC_BITMAP,            // [set] Indicates an available bitmap when there is no better thumbnail representation.
+	DWMWA_DISALLOW_PEEK,                // [set] Don't invoke Peek on the window.
+	DWMWA_EXCLUDED_FROM_PEEK,           // [set] LivePreview exclusion information
+	DWMWA_LAST
+};
+
+#define DWM_TNP_RECTDESTINATION	0x00000001
+#define DWM_TNP_RECTSOURCE 0x00000002
+#define DWM_TNP_OPACITY	0x00000004
+#define DWM_TNP_VISIBLE	0x00000008
+#define DWM_TNP_SOURCECLIENTAREAONLY 0x00000010
+
+#define DWM_SIT_DISPLAYFRAME    0x00000001  // Display a window frame around the provided bitmap
+
+
+#ifndef BPPF_ERASE
+typedef enum _BP_BUFFERFORMAT
+{
+	BPBF_COMPATIBLEBITMAP,    // Compatible bitmap
+	BPBF_DIB,                 // Device-independent bitmap
+	BPBF_TOPDOWNDIB,          // Top-down device-independent bitmap
+	BPBF_TOPDOWNMONODIB       // Top-down monochrome device-independent bitmap
+} BP_BUFFERFORMAT;
+
+
+typedef struct _BP_PAINTPARAMS
+{
+	DWORD                       cbSize;
+	DWORD                       dwFlags; // BPPF_ flags
+	const RECT            *     prcExclude;
+	const BLENDFUNCTION        * pBlendFunction;
+} BP_PAINTPARAMS, *PBP_PAINTPARAMS;
+
+#define BPPF_ERASE               1
+#define BPPF_NOCLIP              2
+#define BPPF_NONCLIENT           4
+#endif
+
+
+#define DWM_BB_ENABLE 1
+
+#ifndef LOCALE_SISO3166CTRYNAME2
+#define LOCALE_SISO3166CTRYNAME2      0x00000068   // 3 character ISO country name, eg "USA Vista+
+#define LOCALE_SISO639LANGNAME2       0x00000067   // 3 character ISO abbreviated language name, eg "eng"
+#endif
+
+#ifndef WM_DWMCOMPOSITIONCHANGED
+#define WM_DWMCOMPOSITIONCHANGED        0x031E
+#define WM_DWMCOLORIZATIONCOLORCHANGED  0x0320
+#endif
+
+#ifndef WM_DWMSENDICONICTHUMBNAIL
+#define WM_DWMSENDICONICTHUMBNAIL           0x0323
+#define WM_DWMSENDICONICLIVEPREVIEWBITMAP   0x0326
+#endif
+
+#if !defined(_WIN64) && !defined(_USE_32BIT_TIME_T)
+#define _USE_32BIT_TIME_T
+#else
+#undef _USE_32BIT_TIME_T
+#endif
+
+extern NEN_OPTIONS nen_options;
+extern HINSTANCE g_hInst;
+extern CSkinItem SkinItems[];
+extern TContainerData *pFirstContainer, *pLastActiveContainer;
+extern HANDLE hTypingNotify;
+extern ButtonSet g_ButtonSet;
+extern HANDLE g_hEvent;
+extern RECT rcLastStatusBarClick;
+extern PLUGININFOEX pluginInfo;
+extern TTemplateSet RTL_Active, LTR_Active;
+extern LOGFONTA logfonts[MSGDLGFONTCOUNT + 2];
+extern COLORREF fontcolors[MSGDLGFONTCOUNT + 2];
+extern HINSTANCE hinstance;
+extern BOOL g_bIMGtagButton;
+extern HANDLE hHookToolBarLoadedEvt;
+extern TLogIcon msgLogIcons[NR_LOGICONS * 3];
+extern const TCHAR *pszIDCSAVE_save, *pszIDCSAVE_close;
+extern char *TemplateNames[];
+extern HANDLE hUserPrefsWindowList;
+extern TCpTable cpTable[];
+extern HMODULE g_hIconDLL;
+extern HMENU g_hMenu;
+extern bool g_bShutdown;
+
+extern CREOleCallback reOleCallback;
+extern CREOleCallback2 reOleCallback2;
+
+int  LoadSendRecvMessageModule(void);
+int  SplitmsgShutdown(void);
+void LogErrorMessage(HWND hwndDlg, TWindowData *dat, int i, TCHAR *szMsg);
+int  Chat_Load(), Chat_Unload();
+void FreeLogFonts();
+void ImageDataInsertBitmap(IRichEditOle *ole, HBITMAP hBm);
+int  CacheIconToBMP(TLogIcon *theIcon, HICON hIcon, COLORREF backgroundColor, int sizeX, int sizeY);
+void DeleteCachedIcon(TLogIcon *theIcon);
+
+INT_PTR SendMessageCommand(WPARAM wParam, LPARAM lParam);
+INT_PTR SendMessageCommand_W(WPARAM wParam, LPARAM lParam);
+
+
+#define IMG_NOCHECK	0
+#define IMG_CHECK	1
+#define IMG_GRPOPEN	2
+#define IMG_GRPCLOSED	3
+HIMAGELIST CreateStateImageList();
+void TreeViewInit(HWND hwndTree, UINT id, DWORD dwFlags, BOOL bFromMem);
+void TreeViewDestroy(HWND hwndTree);
+void TreeViewSetFromDB(HWND hwndTree, UINT id, DWORD dwFlags);
+void TreeViewToDB(HWND hwndTree, UINT id, char *DBPath, DWORD *dwFlags);
+BOOL TreeViewHandleClick(HWND hwndDlg, HWND hwndTree, WPARAM wParam, LPARAM lParam);
+
+
+INT_PTR CALLBACK DlgProcSetupStatusModes(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
+INT_PTR CALLBACK DlgProcPopupOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
+INT_PTR CALLBACK DlgProcTabConfig(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
+INT_PTR CALLBACK DlgProcTemplateEditor(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
+INT_PTR CALLBACK DlgProcToolBar(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
+INT_PTR CALLBACK PlusOptionsProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
+INT_PTR CALLBACK DlgProcOptions1(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
+INT_PTR CALLBACK DlgProcOptions2(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
+INT_PTR CALLBACK DlgProcOptions3(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
+INT_PTR CALLBACK DlgProcUserPrefsFrame(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
+
+int TSAPI TBStateConvert2Flat(int state);
+int TSAPI RBStateConvert2Flat(int state);
+void TSAPI FillTabBackground(const HDC hdc, int iStateId, const TWindowData *dat, RECT* rc);
+
+#define IS_EXTKEY(a) (a & (1 << 24))
+
+#endif /* __stdafx_H */
diff --git a/plugins/TabSRMM/src/tabctrl.cpp b/plugins/TabSRMM/src/tabctrl.cpp
index 90de38ad11..59cfa8ef4d 100644
--- a/plugins/TabSRMM/src/tabctrl.cpp
+++ b/plugins/TabSRMM/src/tabctrl.cpp
@@ -27,7 +27,7 @@
 // a custom tab control, skinable, aero support, single/multi row, button
 // tabs support, proper rendering for bottom row tabs and more.
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 static WNDPROC		OldTabControlClassProc;
 
diff --git a/plugins/TabSRMM/src/taskbar.cpp b/plugins/TabSRMM/src/taskbar.cpp
index 20b6ea883b..8d1c315fec 100644
--- a/plugins/TabSRMM/src/taskbar.cpp
+++ b/plugins/TabSRMM/src/taskbar.cpp
@@ -51,7 +51,7 @@
 // Each proxy window has a CThumbIM or CThumbMUC object which represents
 // the actual thumbnail bitmap.
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 /**
  * maps MUC event types to icon names for retrieving the "big" icons
diff --git a/plugins/TabSRMM/src/templates.cpp b/plugins/TabSRMM/src/templates.cpp
index 375d87ac19..38e246a13c 100644
--- a/plugins/TabSRMM/src/templates.cpp
+++ b/plugins/TabSRMM/src/templates.cpp
@@ -26,7 +26,7 @@
 //
 // Simple editor for the message log templates
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 /*
 * hardcoded default set of templates for both LTR and RTL.
diff --git a/plugins/TabSRMM/src/themeio.cpp b/plugins/TabSRMM/src/themeio.cpp
index c8636f7bf5..7437a5fd77 100644
--- a/plugins/TabSRMM/src/themeio.cpp
+++ b/plugins/TabSRMM/src/themeio.cpp
@@ -26,7 +26,7 @@
 //
 // Import and export theme settings between files and the database
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 #define CURRENT_THEME_VERSION 5
 #define THEME_COOKIE 25099837
diff --git a/plugins/TabSRMM/src/themes.cpp b/plugins/TabSRMM/src/themes.cpp
index 88bd0dc11b..d5b5733024 100644
--- a/plugins/TabSRMM/src/themes.cpp
+++ b/plugins/TabSRMM/src/themes.cpp
@@ -27,7 +27,7 @@
 // Implements the skinning engine and most parts of the aero support in
 // tabSRMM 3.x+
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 static SKINDESC my_default_skin[] = {
 	IDR_SKIN_AERO, _T("tabskin_aero.png"),
diff --git a/plugins/TabSRMM/src/translator.cpp b/plugins/TabSRMM/src/translator.cpp
index 5a789822fc..d4dd92edbf 100644
--- a/plugins/TabSRMM/src/translator.cpp
+++ b/plugins/TabSRMM/src/translator.cpp
@@ -26,7 +26,7 @@
 //
 // handles pretranslated strings
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 TOptionListGroup m_lvGroupsModPlus[] =
 {
diff --git a/plugins/TabSRMM/src/trayicon.cpp b/plugins/TabSRMM/src/trayicon.cpp
index 2bea40a6ed..a0954e031b 100644
--- a/plugins/TabSRMM/src/trayicon.cpp
+++ b/plugins/TabSRMM/src/trayicon.cpp
@@ -26,7 +26,7 @@
 //
 // The code that creates and animates the tray icon.
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 static BOOL    isAnimThreadRunning = TRUE;
 static HANDLE  hTrayAnimThread = 0;
diff --git a/plugins/TabSRMM/src/typingnotify.cpp b/plugins/TabSRMM/src/typingnotify.cpp
index 9e2bda4007..6cbc66c579 100644
--- a/plugins/TabSRMM/src/typingnotify.cpp
+++ b/plugins/TabSRMM/src/typingnotify.cpp
@@ -1,4 +1,4 @@
-#include "commonheaders.h"
+#include "stdafx.h"
 
 HANDLE hTypingNotify;
 
diff --git a/plugins/TabSRMM/src/userprefs.cpp b/plugins/TabSRMM/src/userprefs.cpp
index a5a2c76604..fe153c1bc8 100644
--- a/plugins/TabSRMM/src/userprefs.cpp
+++ b/plugins/TabSRMM/src/userprefs.cpp
@@ -29,7 +29,7 @@
 // view mode (ieview/default)
 // text formatting
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 #define UPREF_ACTION_APPLYOPTIONS 1
 #define UPREF_ACTION_REMAKELOG 2
diff --git a/plugins/TabSRMM/src/utils.cpp b/plugins/TabSRMM/src/utils.cpp
index 1bf9e30517..7b46ddfd96 100644
--- a/plugins/TabSRMM/src/utils.cpp
+++ b/plugins/TabSRMM/src/utils.cpp
@@ -26,7 +26,7 @@
 //
 // generic utility functions
 
-#include "commonheaders.h"
+#include "stdafx.h"
 
 #include <string>
 
-- 
cgit v1.2.3