From b1684967aae9ac5b29b283bfdef17926edbbddc0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 30 Jul 2017 21:41:36 +0300 Subject: added ability to bind hotkeys to SRMM toolbar icons --- include/m_message.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/m_message.h') diff --git a/include/m_message.h b/include/m_message.h index 1173e822ca..a5454c3138 100644 --- a/include/m_message.h +++ b/include/m_message.h @@ -203,6 +203,9 @@ struct StatusIconClickData /////////////////////////////////////////////////////////////////////////////////////////////////////////////// // srmm toolbar icons' support +// default section for all SRMM toolbar hotkeys +#define BB_HK_SECTION "Message window toolbar" + // button state flags #define BBSF_HIDDEN (1<<0) #define BBSF_DISABLED (1<<1) @@ -233,6 +236,7 @@ struct BBButton // use value >100, because internal buttons using 10,20,30... 80, etc DWORD bbbFlags; // combine of BBBF_ flags above HANDLE hIcon; // Handle to icolib registered icon + const char *pszHotkey; // name of the registered hotkey or NULL }; // adds a new toolbar button @@ -332,6 +336,7 @@ struct CustomButtonData : public MZeroedObject bool m_bRSided; BYTE m_opFlags; int m_hLangpack; + struct THotkeyItem *m_hotkey; }; // gets the required button or NULL, if i is out of boundaries -- cgit v1.2.3