summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-19 16:10:58 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-19 16:10:58 +0000
commit394540126b181982d8b61d07a084ceeac8559ed1 (patch)
tree3950c99abcaeb77888271dd5994d96254f0492c6 /include
parentfe557276119e48389b9a471d5a4ed5d232a2857d (diff)
- dynamic hotkey translation
- MS_HOTKEY_REGISTER replaced with Hotkey_Register git-svn-id: http://svn.miranda-ng.org/main/trunk@482 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include')
-rw-r--r--include/m_hotkeys.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/m_hotkeys.h b/include/m_hotkeys.h
index 6bb568d618..7d6acba08f 100644
--- a/include/m_hotkeys.h
+++ b/include/m_hotkeys.h
@@ -54,6 +54,8 @@ typedef struct
#define HKF_MIRANDA_LOCAL 0x8000
+extern int hLangpack;
+
/* use this macro to defile hotkey codes like this:
hkd.DefHotkey = HOTKEYCODE(HOTKEYF_SHIFT|HOTKEYF_EXT, 'A');
*/
@@ -65,7 +67,11 @@ Registers new hotkey
lParam=(LPARAM)(HOTKEYDESC *)hotkey
Returns 0 on failure or hotkey atom id on success
*/
-#define MS_HOTKEY_REGISTER "CoreHotkeys/Register"
+
+__inline static INT_PTR Hotkey_Register(HOTKEYDESC *hk)
+{
+ return CallService("CoreHotkeys/Register", (WPARAM)hLangpack, (LPARAM)hk);
+}
/* CoreHotkeys/Unregister service
Unregister existing hotkey