From 8e9ae3e26313af8914379a186389d0e0b88bbce1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 23 Dec 2016 21:11:37 +0300 Subject: header file to be renamed too --- plugins/Scriver/src/msgwindow.h | 92 ----------------------------------------- plugins/Scriver/src/stdafx.h | 2 +- plugins/Scriver/src/tabs.h | 92 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+), 93 deletions(-) delete mode 100644 plugins/Scriver/src/msgwindow.h create mode 100644 plugins/Scriver/src/tabs.h (limited to 'plugins/Scriver/src') diff --git a/plugins/Scriver/src/msgwindow.h b/plugins/Scriver/src/msgwindow.h deleted file mode 100644 index ca2e643e7c..0000000000 --- a/plugins/Scriver/src/msgwindow.h +++ /dev/null @@ -1,92 +0,0 @@ -/* -Scriver - -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. -*/ -#ifndef MSGWINDOW_H -#define MSGWINDOW_H - -/* container services */ -#define CM_ADDCHILD (WM_USER+0x180) -#define CM_REMOVECHILD (WM_USER+0x181) -#define CM_ACTIVATECHILD (WM_USER+0x182) -#define CM_ACTIVATEPREV (WM_USER+0x183) -#define CM_ACTIVATENEXT (WM_USER+0x184) -#define CM_ACTIVATEBYINDEX (WM_USER+0x185) - -#define CM_GETCHILDCOUNT (WM_USER+0x188) -#define CM_GETACTIVECHILD (WM_USER+0x189) -#define CM_GETFLAGS (WM_USER+0x18A) - -#define CM_UPDATETITLEBAR (WM_USER+0x190) -#define CM_UPDATESTATUSBAR (WM_USER+0x191) -#define CM_UPDATETABCONTROL (WM_USER+0x192) -#define CM_STARTFLASHING (WM_USER+0x1A0) -#define CM_POPUPWINDOW (WM_USER+0x1A1) - -#define CM_GETTOOLBARSTATUS (WM_USER+0x1A2) - -/* child window services */ -#define DM_UPDATETITLEBAR (WM_USER+0x1B0) -#define DM_UPDATETABCONTROL (WM_USER+0x1B2) -#define DM_SETPARENT (WM_USER+0x1B3) -#define DM_ACTIVATE (WM_USER+0x1B6) -#define DM_GETCONTEXTMENU (WM_USER+0x1B7) -#define DM_SETFOCUS (WM_USER+0x1BA) -#define DM_CLISTSETTINGSCHANGED (WM_USER+0x1BB) - -#define SBDF_TEXT 1 -#define SBDF_ICON 2 - -struct StatusBarData -{ - int iItem; - int iFlags; - wchar_t *pszText; - HICON hIcon; -}; - -#define TBDF_TEXT 1 -#define TBDF_ICON 2 - -struct TitleBarData -{ - int iFlags; - wchar_t *pszText; - HICON hIcon; - HICON hIconBig; - HICON hIconNot; -}; - -#define TCDF_TEXT 1 -#define TCDF_ICON 2 - -struct TabControlData -{ - int iFlags; - wchar_t *pszText; - HICON hIcon; -}; - -wchar_t* GetWindowTitle(MCONTACT hContact, const char *szProto); -HWND GetParentWindow(MCONTACT hContact, BOOL bChat); -void NotifyLocalWinEvent(MCONTACT hContact, HWND hwnd, unsigned int type); - -#endif diff --git a/plugins/Scriver/src/stdafx.h b/plugins/Scriver/src/stdafx.h index b46f88eadb..45b704105c 100644 --- a/plugins/Scriver/src/stdafx.h +++ b/plugins/Scriver/src/stdafx.h @@ -74,7 +74,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "sendqueue.h" #include "msgs.h" #include "globals.h" -#include "msgwindow.h" +#include "tabs.h" #include "utils.h" #include "input.h" #include "richutil.h" diff --git a/plugins/Scriver/src/tabs.h b/plugins/Scriver/src/tabs.h new file mode 100644 index 0000000000..ca2e643e7c --- /dev/null +++ b/plugins/Scriver/src/tabs.h @@ -0,0 +1,92 @@ +/* +Scriver + +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. +*/ +#ifndef MSGWINDOW_H +#define MSGWINDOW_H + +/* container services */ +#define CM_ADDCHILD (WM_USER+0x180) +#define CM_REMOVECHILD (WM_USER+0x181) +#define CM_ACTIVATECHILD (WM_USER+0x182) +#define CM_ACTIVATEPREV (WM_USER+0x183) +#define CM_ACTIVATENEXT (WM_USER+0x184) +#define CM_ACTIVATEBYINDEX (WM_USER+0x185) + +#define CM_GETCHILDCOUNT (WM_USER+0x188) +#define CM_GETACTIVECHILD (WM_USER+0x189) +#define CM_GETFLAGS (WM_USER+0x18A) + +#define CM_UPDATETITLEBAR (WM_USER+0x190) +#define CM_UPDATESTATUSBAR (WM_USER+0x191) +#define CM_UPDATETABCONTROL (WM_USER+0x192) +#define CM_STARTFLASHING (WM_USER+0x1A0) +#define CM_POPUPWINDOW (WM_USER+0x1A1) + +#define CM_GETTOOLBARSTATUS (WM_USER+0x1A2) + +/* child window services */ +#define DM_UPDATETITLEBAR (WM_USER+0x1B0) +#define DM_UPDATETABCONTROL (WM_USER+0x1B2) +#define DM_SETPARENT (WM_USER+0x1B3) +#define DM_ACTIVATE (WM_USER+0x1B6) +#define DM_GETCONTEXTMENU (WM_USER+0x1B7) +#define DM_SETFOCUS (WM_USER+0x1BA) +#define DM_CLISTSETTINGSCHANGED (WM_USER+0x1BB) + +#define SBDF_TEXT 1 +#define SBDF_ICON 2 + +struct StatusBarData +{ + int iItem; + int iFlags; + wchar_t *pszText; + HICON hIcon; +}; + +#define TBDF_TEXT 1 +#define TBDF_ICON 2 + +struct TitleBarData +{ + int iFlags; + wchar_t *pszText; + HICON hIcon; + HICON hIconBig; + HICON hIconNot; +}; + +#define TCDF_TEXT 1 +#define TCDF_ICON 2 + +struct TabControlData +{ + int iFlags; + wchar_t *pszText; + HICON hIcon; +}; + +wchar_t* GetWindowTitle(MCONTACT hContact, const char *szProto); +HWND GetParentWindow(MCONTACT hContact, BOOL bChat); +void NotifyLocalWinEvent(MCONTACT hContact, HWND hwnd, unsigned int type); + +#endif -- cgit v1.2.3