summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar/common.h
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-07-24 09:26:39 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-07-24 09:26:39 +0000
commit1e92bf5cf72665b5fec103a0a70d734340725539 (patch)
tree7f9dc318b0e18b2cd55e2604c309eb006c11f278 /plugins/TopToolBar/common.h
parentcd441faefd073cfd368d815f4237d7b4996a1063 (diff)
StopSpamPlus, TipperYM, TooltipNotify, TopToolBar, TranslitSwitcher, UserGuide: changed folder structure
git-svn-id: http://svn.miranda-ng.org/main/trunk@1159 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar/common.h')
-rw-r--r--plugins/TopToolBar/common.h157
1 files changed, 0 insertions, 157 deletions
diff --git a/plugins/TopToolBar/common.h b/plugins/TopToolBar/common.h
deleted file mode 100644
index 0840111f2f..0000000000
--- a/plugins/TopToolBar/common.h
+++ /dev/null
@@ -1,157 +0,0 @@
-#ifndef TTB_COMMON_H
-#define TTB_COMMON_H
-
-
-#define _CRT_SECURE_NO_WARNINGS
-
-#include <windows.h>
-#include <commctrl.h>
-#include <time.h>
-#include <stddef.h>
-#include <process.h>
-#include <math.h>
-#include <vsstyle.h>
-
-#include "win2k.h"
-#include "newpluginapi.h"
-#include "m_system.h"
-#include "m_system_cpp.h"
-#include "m_database.h"
-#include "m_clist.h"
-#include "m_skin.h"
-#include "m_utils.h"
-#include "m_cluiframes.h"
-#include "m_clui.h"
-#include "m_clc.h"
-#include "m_findadd.h"
-#include "m_langpack.h"
-#include "m_options.h"
-#include "resource.h"
-#include "m_protocols.h"
-#include "m_protosvc.h"
-#include "m_toptoolbar.h"
-#include "m_button.h"
-#include "m_icolib.h"
-#include "BkgrCfg.h"
-
-#define TTB_BUTTON_CLASS _T("TopToolbarButtonClass")
-
-#define TTB_REPOSBUTTONS (WM_USER+10)
-#define TTB_UPDATEFRAMEVISIBILITY (WM_USER+11)
-
-#define TTBDEFAULT_BKBMPUSE CLB_STRETCH
-#define TTBDEFAULT_BKCOLOUR GetSysColor(COLOR_3DFACE)
-#define TTBDEFAULT_USEBITMAP 0
-#define TTBDEFAULT_SELBKCOLOUR GetSysColor(COLOR_HIGHLIGHT)
-
-#define TTBBF_INTERNAL 0x1000000
-#define TTBBF_OPTIONAL 0x2000000
-
-///////////////////////////////////////////////////////////////////////////////
-// TopButtonInt class
-
-struct TopButtonInt : public MZeroedObject
-{
- ~TopButtonInt();
-
- DWORD CheckFlags(DWORD Flags);
- void CreateWnd(void);
- void LoadSettings(void);
- void SaveSettings(int *SepCnt, int *LaunchCnt);
- void SetBitmap(void);
-
- __inline bool isSep() const
- { return (dwFlags & TTBBF_ISSEPARATOR) != 0;
- }
-
- __inline bool isVisible() const
- { return (dwFlags & TTBBF_VISIBLE) != 0;
- }
-
- HWND hwnd;
- int id;
- BOOL bPushed;
- int dwFlags;
- int x, y, arrangedpos;
- HICON hIconUp, hIconDn;
- HANDLE hIconHandleUp, hIconHandleDn;
-
- char *pszService;
- TCHAR *ptszProgram;
- char *pszName;
- TCHAR *ptszTooltip;
-
- LPARAM lParamUp;
- WPARAM wParamUp;
- LPARAM lParamDown;
- WPARAM wParamDown;
-
- int hLangpack;
- TCHAR *ptszTooltipUp, *ptszTooltipDn;
-};
-
-///////////////////////////////////////////////////////////////////////////////
-
-int TTBOptInit(WPARAM wParam, LPARAM lParam);
-//append string
-char __inline *AS(char *str, const char *setting, char *addstr);
-
-TopButtonInt* CreateButton(TTBButton* but);
-
-int LoadBackgroundOptions();
-
-int ArrangeButtons();
-
-#define DEFBUTTWIDTH 20
-#define DEFBUTTHEIGHT 20
-#define DEFBUTTGAP 1
-
-#define SEPWIDTH 3
-
-extern TTBCtrl* g_ctrl;
-
-extern LIST<TopButtonInt> Buttons;
-extern HINSTANCE hInst;
-extern HBITMAP hBmpBackground, hBmpSeparator;
-extern CRITICAL_SECTION csButtonsHook;
-extern pfnCustomProc g_CustomProc;
-extern LPARAM g_CustomProcParam;
-extern HANDLE hTTBModuleLoaded, hTTBInitButtons;
-
-void AddToOptions(TopButtonInt* b);
-void RemoveFromOptions(int id);
-
-//append string
-char *AS(char *str, const char *setting, char *addstr)
-{
- if (str != NULL) {
- strcpy(str, setting);
- strcat(str, addstr);
- }
- return str;
-}
-
-#define TTB_LAUNCHSERVICE "TTB/LaunchService"
-
-TopButtonInt* idtopos(int id, int* pPos=NULL);
-
-INT_PTR TTBAddButton(WPARAM, LPARAM);
-INT_PTR TTBRemoveButton(WPARAM, LPARAM);
-
-int InitInternalButtons(WPARAM, LPARAM);
-
-int LoadToolbarModule( void );
-int UnloadToolbarModule( void );
-
-void SetAllBitmaps( void );
-int SaveAllLButs( void );
-int SaveAllButtonsOptions( void );
-
-void InsertSeparator( int i );
-void DeleteSeparator(int i);
-void DeleteLBut(int i);
-void InsertLBut(int i);
-
-int OnModulesLoad(WPARAM, LPARAM);
-
-#endif \ No newline at end of file