diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-19 16:10:58 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-19 16:10:58 +0000 |
commit | 394540126b181982d8b61d07a084ceeac8559ed1 (patch) | |
tree | 3950c99abcaeb77888271dd5994d96254f0492c6 /plugins/Clist_modern | |
parent | fe557276119e48389b9a471d5a4ed5d232a2857d (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 'plugins/Clist_modern')
-rw-r--r-- | plugins/Clist_modern/modern_keyboard.cpp | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/plugins/Clist_modern/modern_keyboard.cpp b/plugins/Clist_modern/modern_keyboard.cpp index 2bcd0a373f..ad686a1ec1 100644 --- a/plugins/Clist_modern/modern_keyboard.cpp +++ b/plugins/Clist_modern/modern_keyboard.cpp @@ -45,22 +45,19 @@ int InitSkinHotKeys(void) CreateServiceFunction("CLIST/HK/RestoreStatus",hkRestoreStatus);
HOTKEYDESC shk = {0};
- shk.cbSize=sizeof(shk);
- shk.dwFlags=HKD_TCHAR;
+ shk.cbSize = sizeof(shk);
- shk.ptszDescription=LPGENT("Close Miranda");
- shk.pszName="CloseMiranda";
- shk.ptszSection=LPGENT("Main");
- shk.pszService="CLIST/HK/CloseMiranda";
- shk.DefHotKey=0;
- CallService(MS_HOTKEY_REGISTER,0,(LPARAM)&shk);
+ shk.pszDescription = LPGEN("Close Miranda");
+ shk.pszName = "CloseMiranda";
+ shk.pszSection = LPGEN("Main");
+ shk.pszService = "CLIST/HK/CloseMiranda";
+ Hotkey_Register(&shk);
- shk.ptszDescription=LPGENT("Restore last status");
- shk.pszName="RestoreLastStatus";
- shk.ptszSection=LPGENT("Status");
- shk.pszService="CLIST/HK/RestoreStatus";
- shk.DefHotKey=0;
- CallService(MS_HOTKEY_REGISTER,0,(LPARAM)&shk);
+ shk.pszDescription = LPGEN("Restore last status");
+ shk.pszName = "RestoreLastStatus";
+ shk.pszSection = LPGEN("Status");
+ shk.pszService = "CLIST/HK/RestoreStatus";
+ Hotkey_Register(&shk);
return 0;
}
|