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/CSList/cslist.cpp | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'plugins/CSList/cslist.cpp') diff --git a/plugins/CSList/cslist.cpp b/plugins/CSList/cslist.cpp index 98d7c9e31f..4ce3f66d18 100644 --- a/plugins/CSList/cslist.cpp +++ b/plugins/CSList/cslist.cpp @@ -174,19 +174,15 @@ int CSList::postLoading( WPARAM wparam, LPARAM lparam ) void CSList::registerHotkeys(char buf[200], TCHAR* accName, int Number) { - // 0.9+ core hotkeys service - if ( ServiceExists( MS_HOTKEY_REGISTER ) ) - { - HOTKEYDESC hotkey = { 0 }; - hotkey.cbSize = sizeof(hotkey); - hotkey.dwFlags = HKD_TCHAR; - hotkey.pszName = buf; - hotkey.ptszDescription = accName; - hotkey.ptszSection = _T("Custom Status List"); - hotkey.pszService = buf; - hotkey.DefHotKey = HOTKEYCODE( HOTKEYF_CONTROL | HOTKEYF_SHIFT, '0'+Number ); - CallService( MS_HOTKEY_REGISTER, 0, ( LPARAM )&hotkey ); - } + HOTKEYDESC hotkey = { 0 }; + hotkey.cbSize = sizeof(hotkey); + hotkey.dwFlags = HKD_TCHAR; + hotkey.pszName = buf; + hotkey.ptszDescription = accName; + hotkey.ptszSection = LPGENT("Custom Status List"); + hotkey.pszService = buf; + hotkey.DefHotKey = HOTKEYCODE( HOTKEYF_CONTROL | HOTKEYF_SHIFT, '0'+Number ); + Hotkey_Register(&hotkey); } int CSList::initOptions( WPARAM wparam, LPARAM lparam ) -- cgit v1.2.3