summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar/common.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-18 12:13:42 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-18 12:13:42 +0000
commit9893f0ea9fdb640962f32db7f20b07ffcab33acc (patch)
treec9bcff67ec05812983e350058a6e9cdf389e3c74 /plugins/TopToolBar/common.h
parent81fe4a0a34e8e07305381e18e449246fef822673 (diff)
- options' fixes
- separators drawing fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@470 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar/common.h')
-rw-r--r--plugins/TopToolBar/common.h45
1 files changed, 7 insertions, 38 deletions
diff --git a/plugins/TopToolBar/common.h b/plugins/TopToolBar/common.h
index 52658e5b9a..d3a55ff3dc 100644
--- a/plugins/TopToolBar/common.h
+++ b/plugins/TopToolBar/common.h
@@ -61,7 +61,8 @@ struct TopButtonInt
HICON hIconUp, hIconDn;
HANDLE hIconHandleUp, hIconHandleDn;
- char *pszServiceUp, *pszServiceDown;
+ char *pszService;
+ TCHAR *program;
char *name;
TCHAR *tooltip;
@@ -94,12 +95,6 @@ int OptionsPageRebuild();
void lockbut();
void ulockbut();
-//return - 0 success, -1 on error
-#define TTB_ADDSEPARATOR "TTB/AddSeparator"
-//wparam sepid
-#define TTB_REMOVESEPARATOR "TTB/RemoveSeparator"
-
-
//append string
char *AS(char *str, const char *setting, char *addstr)
{
@@ -111,17 +106,6 @@ char *AS(char *str, const char *setting, char *addstr)
}
#define TTB_LAUNCHSERVICE "TTB/LaunchSerice"
-//wparam -id
-//lparam &LBTOPT
-#define TTB_MODIFYLBUTTON "TTB/ModifyLButton"
-
-//wparam -id
-//lparam &LBTOPT
-#define TTB_GETLBUTTON "TTB/GetLButton"
-
-#define TTB_ADDLBUTTON "TTB/AddLButton"
-#define TTB_REMOVELBUTTON "TTB/RemoveLButton"
-#define MYMIRANDABUTTONCLASS _T("MButtonClass") //_T("MyMIRANDABUTTONCLASS")
int LoadInternalButtons( HWND );
int UnLoadInternalButtons( void );
@@ -129,37 +113,22 @@ int UnLoadInternalButtons( void );
int LoadToolbarModule( void );
int UnloadToolbarModule( void );
-int LoadAllSeparators( void );
-
int SetAllBitmaps( void );
int SaveAllLButs( void );
int SaveAllButtonsOptions( void );
-int SaveAllSeparators( void );
-
-int InitLBut();
-int UnInitLBut();
void lockbut();
void ulockbut();
INT_PTR TTBAddButton(WPARAM, LPARAM);
INT_PTR TTBRemoveButton(WPARAM, LPARAM);
-INT_PTR DeleteLBut(WPARAM, LPARAM);
-INT_PTR ModifyLButton(WPARAM, LPARAM);
-INT_PTR GetLButton(WPARAM, LPARAM);
-INT_PTR InsertNewFreeSeparator(WPARAM, LPARAM);
-INT_PTR DeleteSeparator(WPARAM, LPARAM);
-int OnModulesLoad(WPARAM, LPARAM);
-
-INT_PTR InsertLBut(int id);
+void InsertSeparator( int i );
+void DeleteSeparator(int i);
+void DeleteLBut(int i);
+void InsertLBut(int i);
-struct LBUTOPT
-{
- int hframe;
- TCHAR *lpath;
- char *name;
-};
+int OnModulesLoad(WPARAM, LPARAM);
#define BM_SETPRIVATEICON (WM_USER + 6)
#define BM_SETIMLICON (WM_USER + 7)