summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar/common.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-08 21:40:43 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-08 21:40:43 +0000
commit56984a95c2514df3a96849d790a3e1bc5b3de52a (patch)
treed4b2a95ab02e325fb90b2d3ff67bedaf12ffbcda /plugins/TopToolBar/common.h
parent6b81bb77ecf6025bd79ee376cea62da94f6aefcc (diff)
TopToolButton -> Unicode (any miracles are possible)
git-svn-id: http://svn.miranda-ng.org/main/trunk@366 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar/common.h')
-rw-r--r--plugins/TopToolBar/common.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/plugins/TopToolBar/common.h b/plugins/TopToolBar/common.h
index 92d715701b..5bda9975c3 100644
--- a/plugins/TopToolBar/common.h
+++ b/plugins/TopToolBar/common.h
@@ -49,7 +49,8 @@ int ttbOptionsChanged();
int ArrangeButtons();
int RecreateWindows();
-typedef struct {
+struct TopButtonInt
+{
HWND hwnd;
HWND hwndTip;
int id;
@@ -62,24 +63,23 @@ typedef struct {
HICON hIconUp, hIconDn;
char *pszServiceUp, *pszServiceDown;
- char *tooltip;
char *name;
-
+ TCHAR *tooltip;
+
LPARAM lParamUp;
WPARAM wParamUp;
LPARAM lParamDown;
WPARAM wParamDown;
WORD arrangedpos;
- char *UserDefinedbmUp;
- char *UserDefinedbmDown;
-
+ TCHAR *UserDefinedbmUp;
+ TCHAR *UserDefinedbmDown;
+};
-}TopButtonInt;
-
-typedef struct tagSortData {
+struct SortData
+{
int oldpos;
int arrangeval;
-} SortData;
+};
#define MAX_BUTTONS 64
//#define BUTTWIDTH 20
@@ -87,11 +87,12 @@ typedef struct tagSortData {
//#define BUTTHEIGHT 16
#define SEPWIDTH 3
-typedef struct tagButtonOptData {
+struct ButtonOptData
+{
char *name;
int pos;
bool show;
-} ButtonOptData;
+};
extern bool OptionsOpened;
extern HWND OptionshWnd;
@@ -100,7 +101,7 @@ int OptionsPageRebuild();
void lockbut();
void ulockbut();
-//return - 0 success, -1 on error
+//return - 0 success, -1 on error
#define TTB_ADDSEPARATOR "TTB/AddSeparator"
//wparam sepid
#define TTB_REMOVESEPARATOR "TTB/RemoveSeparator"
@@ -127,7 +128,7 @@ char *AS(char *str, const char *setting, char *addstr)
#define TTB_ADDLBUTTON "TTB/AddLButton"
#define TTB_REMOVELBUTTON "TTB/RemoveLButton"
-#define MYMIRANDABUTTONCLASS "MyMIRANDABUTTONCLASS"
+#define MYMIRANDABUTTONCLASS _T("MyMIRANDABUTTONCLASS")
int LoadInternalButtons( HWND );
int UnLoadInternalButtons( void );
@@ -153,13 +154,12 @@ INT_PTR GetLButton(WPARAM, LPARAM);
INT_PTR InsertLBut(int id);
-typedef struct
+struct LBUTOPT
{
int hframe;
- char *lpath;
+ TCHAR *lpath;
char *name;
-}
- LBUTOPT;
+};
int LoadCLCButtonModule(void);
#define BM_SETPRIVATEICON (WM_USER + 6)