From 394540126b181982d8b61d07a084ceeac8559ed1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 19 Jun 2012 16:10:58 +0000 Subject: - 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 --- plugins/RecentContacts/RecentContacts.cpp | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'plugins/RecentContacts/RecentContacts.cpp') diff --git a/plugins/RecentContacts/RecentContacts.cpp b/plugins/RecentContacts/RecentContacts.cpp index 3e43af0daa..8e9f4d8c07 100644 --- a/plugins/RecentContacts/RecentContacts.cpp +++ b/plugins/RecentContacts/RecentContacts.cpp @@ -609,17 +609,15 @@ int OnModulesLoaded(WPARAM wParam, LPARAM lParam) } */ - if (ServiceExists(MS_HOTKEY_REGISTER)) { - // hotkeys - HOTKEYDESC hotkey = {0}; - hotkey.cbSize = sizeof(hotkey); - hotkey.pszName = msLastUC_ShowList; - hotkey.pszDescription = LPGEN("Show Recent Contacts"); - hotkey.pszSection = "Contacts"; - hotkey.pszService = msLastUC_ShowList; - hotkey.DefHotKey = MAKEWORD('R', HOTKEYF_CONTROL | HOTKEYF_SHIFT); - CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&hotkey); - } + // hotkeys + HOTKEYDESC hk = {0}; + hk.cbSize = sizeof(hk); + hk.pszName = msLastUC_ShowList; + hk.pszDescription = LPGEN("Show Recent Contacts"); + hk.pszSection = "Contacts"; + hk.pszService = msLastUC_ShowList; + hk.DefHotKey = MAKEWORD('R', HOTKEYF_CONTROL | HOTKEYF_SHIFT); + Hotkey_Register(&hk); return 0; } -- cgit v1.2.3