diff options
author | George Hazan <ghazan@miranda.im> | 2017-07-30 21:41:36 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-07-30 21:41:36 +0300 |
commit | b1684967aae9ac5b29b283bfdef17926edbbddc0 (patch) | |
tree | 787426547f5f5b10959b784b7eebd3cc27b8a45a /include | |
parent | 81af1660759b655e0e65bf2f955ef50e87975a13 (diff) |
added ability to bind hotkeys to SRMM toolbar icons
Diffstat (limited to 'include')
-rw-r--r-- | include/m_message.h | 5 |
1 files changed, 5 insertions, 0 deletions
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
|