diff options
-rw-r--r-- | src/modules/clist/keyboard.cpp | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/src/modules/clist/keyboard.cpp b/src/modules/clist/keyboard.cpp index cb8a428f22..2f7345ff5b 100644 --- a/src/modules/clist/keyboard.cpp +++ b/src/modules/clist/keyboard.cpp @@ -63,14 +63,14 @@ static INT_PTR hkCloseMiranda(WPARAM wParam, LPARAM lParam) INT_PTR hkRestoreStatus(WPARAM wParam, LPARAM lParam)
{
int nStatus = DBGetContactSettingWord(NULL, "CList", "Status", ID_STATUS_OFFLINE);
- CallService(MS_CLIST_SETSTATUSMODE, nStatus, 0);
+ CallService(MS_CLIST_SETSTATUSMODE, nStatus, 0);
return 0;
}
static INT_PTR hkAllOffline(WPARAM, LPARAM)
{
- CallService(MS_CLIST_SETSTATUSMODE, ID_STATUS_OFFLINE, 0);
- return 0;
+ CallService(MS_CLIST_SETSTATUSMODE, ID_STATUS_OFFLINE, 0);
+ return 0;
}
*/
int InitClistHotKeys(void)
@@ -84,18 +84,19 @@ int InitClistHotKeys(void) // CreateServiceFunction("CLIST/HK/RestoreStatus", hkRestoreStatus);
// CreateServiceFunction("CLIST/HK/AllOffline", hkAllOffline);
- shk.cbSize=sizeof(shk);
- shk.pszDescription="Show Hide Contact List";
- shk.pszName="ShowHide";
- shk.pszSection="Main";
- shk.pszService="CLIST/HK/SHOWHIDE";
+ shk.cbSize = sizeof(shk);
+ shk.dwFlags = HKD_TCHAR;
+ shk.ptszDescription = _T("Show Hide Contact List");
+ shk.pszName = "ShowHide";
+ shk.ptszSection = _T("Main");
+ shk.pszService = "CLIST/HK/SHOWHIDE";
shk.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL|HOTKEYF_SHIFT, 'A');
CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&shk);
- shk.pszDescription="Read Message";
- shk.pszName="ReadMessage";
- shk.pszSection="Main";
- shk.pszService="CLIST/HK/Read";
+ shk.ptszDescription = _T("Read Message");
+ shk.pszName = "ReadMessage";
+ shk.ptszSection = _T("Main");
+ shk.pszService = "CLIST/HK/Read";
shk.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL|HOTKEYF_SHIFT, 'I');
CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&shk);
/*
@@ -106,24 +107,24 @@ int InitClistHotKeys(void) shk.DefHotKey=846;
CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&shk);
*/
- shk.pszDescription = "Open Options Page";
+ shk.ptszDescription = _T("Open Options Page");
shk.pszName = "ShowOptions";
- shk.pszSection = "Main";
+ shk.ptszSection = _T("Main");
shk.pszService = "CLIST/HK/Opts";
shk.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL|HOTKEYF_SHIFT, 'O') | HKF_MIRANDA_LOCAL;
CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&shk);
- shk.pszDescription = "Open Logging Options";
+ shk.ptszDescription = _T("Open Logging Options");
shk.pszName = "ShowLogOptions";
- shk.pszSection = "Main";
+ shk.ptszSection = _T("Main");
shk.pszService = "Netlib/Log/Win";
shk.DefHotKey = 0;
CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&shk);
- shk.pszDescription="Open Find User Dialog";
- shk.pszName="FindUsers";
- shk.pszSection="Main";
- shk.pszService="FindAdd/FindAddCommand";
+ shk.ptszDescription = _T("Open Find User Dialog");
+ shk.pszName = "FindUsers";
+ shk.ptszSection = _T("Main");
+ shk.pszService = "FindAdd/FindAddCommand";
shk.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL|HOTKEYF_SHIFT, 'F') | HKF_MIRANDA_LOCAL;
CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&shk);
|