From 4e5cf5ee914732ae30e261f08b270f07a69630f4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 29 Nov 2016 13:03:48 +0300 Subject: BBBF_ANSITOOLTIP - unused flag removed --- plugins/ExternalAPI/delphi/m_msg_buttonsbar.inc | 4 +--- plugins/ExternalAPI/m_msg_buttonsbar.h | 26 +++++++++++-------------- 2 files changed, 12 insertions(+), 18 deletions(-) (limited to 'plugins/ExternalAPI') diff --git a/plugins/ExternalAPI/delphi/m_msg_buttonsbar.inc b/plugins/ExternalAPI/delphi/m_msg_buttonsbar.inc index ee97f3d3ce..e93e5cb5bd 100644 --- a/plugins/ExternalAPI/delphi/m_msg_buttonsbar.inc +++ b/plugins/ExternalAPI/delphi/m_msg_buttonsbar.inc @@ -96,15 +96,13 @@ const BBBF_ISRSIDEBUTTON = $0080; BBBF_CANBEHIDDEN = $0100; BBBF_ISDUMMYBUTTON = $0200; - BBBF_ANSITOOLTIP = $0400; - BBBF_CREATEBYID = $0800; //only for tabsrmm internal use type tagBBButton = record cbSize :int; // size of structure dwButtonID :dword; // your button ID, will be combined with pszModuleName for storing settings, etc... pszModuleName:PAnsiChar; // module name without spaces and underline symbols (e.g. "tabsrmm") - szTooltip :TChar; // button's tooltip + szTooltip :PWideChar; // button's tooltip dwDefPos :dword; // default order pos of button, counted from window edge (left or right) // use value >100, because internal buttons using 10,20,30... 80, etc iButtonWidth :int; // must be 0 diff --git a/plugins/ExternalAPI/m_msg_buttonsbar.h b/plugins/ExternalAPI/m_msg_buttonsbar.h index 73d4619229..c005b46a2f 100644 --- a/plugins/ExternalAPI/m_msg_buttonsbar.h +++ b/plugins/ExternalAPI/m_msg_buttonsbar.h @@ -99,26 +99,22 @@ typedef struct { #define BBBF_ISRSIDEBUTTON (1<<7) #define BBBF_CANBEHIDDEN (1<<8) #define BBBF_ISDUMMYBUTTON (1<<9) -#define BBBF_ANSITOOLTIP (1<<10) #define BBBF_CREATEBYID (1<<11) //only for tabsrmm internal use typedef struct _tagBBButton { - int cbSize; // size of structure - - DWORD dwButtonID; // your button ID, will be combined with pszModuleName for storing settings, etc... - - char* pszModuleName; //module name without spaces and underline symbols (e.g. "tabsrmm") - union{ - char* pszTooltip; //button's tooltip - TCHAR* ptszTooltip; - }; - DWORD dwDefPos; // default order pos of button, counted from window edge (left or right) - // use value >100, because internal buttons using 10,20,30... 80, etc - int iButtonWidth; // must be 0 - DWORD bbbFlags; // combine of BBBF_ flags above - HANDLE hIcon; // Handle to icolib registered icon, it's better to register with pszSection = "TabSRMM/Toolbar" + int cbSize; // size of structure + + DWORD dwButtonID; // your button ID, will be combined with pszModuleName for storing settings, etc... + + char *pszModuleName; // module name without spaces and underline symbols (e.g. "tabsrmm") + wchar_t *pwszTooltip; + DWORD dwDefPos; // default order pos of button, counted from window edge (left or right) + // use value >100, because internal buttons using 10,20,30... 80, etc + int iButtonWidth; // must be 0 + DWORD bbbFlags; // combine of BBBF_ flags above + HANDLE hIcon; // Handle to icolib registered icon, it's better to register with pszSection = "TabSRMM/Toolbar" } BBButton; -- cgit v1.2.3