diff options
Diffstat (limited to 'plugins/UserInfoEx')
-rw-r--r-- | plugins/UserInfoEx/dlg_anniversarylist.cpp | 6 | ||||
-rw-r--r-- | plugins/UserInfoEx/svc_refreshci.cpp | 2 | ||||
-rw-r--r-- | plugins/UserInfoEx/svc_reminder.cpp | 3 |
3 files changed, 5 insertions, 6 deletions
diff --git a/plugins/UserInfoEx/dlg_anniversarylist.cpp b/plugins/UserInfoEx/dlg_anniversarylist.cpp index a4e24cae9b..60718f5861 100644 --- a/plugins/UserInfoEx/dlg_anniversarylist.cpp +++ b/plugins/UserInfoEx/dlg_anniversarylist.cpp @@ -1129,15 +1129,13 @@ VOID DlgAnniversaryListOnToolBarLoaded() **/
VOID DlgAnniversaryListLoadModule()
{
- HOTKEYDESC hk;
-
myCreateServiceFunction(MS_USERINFO_REMINDER_LIST, DlgAnniversaryListShow);
- ZeroMemory(&hk, sizeof(HOTKEYDESC));
+ HOTKEYDESC hk = { 0 };
hk.cbSize = sizeof(HOTKEYDESC);
hk.pszSection = MODNAME;
hk.pszName = "AnniversaryList";
hk.pszDescription = LPGEN("Popup Anniversary list");
hk.pszService = MS_USERINFO_REMINDER_LIST;
- CallService(MS_HOTKEY_REGISTER, NULL, (LPARAM)&hk);
+ Hotkey_Register(&hk);
}
diff --git a/plugins/UserInfoEx/svc_refreshci.cpp b/plugins/UserInfoEx/svc_refreshci.cpp index fa3b00a584..b5e84d004a 100644 --- a/plugins/UserInfoEx/svc_refreshci.cpp +++ b/plugins/UserInfoEx/svc_refreshci.cpp @@ -932,5 +932,5 @@ VOID SvcRefreshContactInfoLoadModule(VOID) hk.pszName = "RefreshContactDetails";
hk.pszDescription = LPGEN("Refresh Contact Details");
hk.pszService = MS_USERINFO_REFRESH;
- CallService(MS_HOTKEY_REGISTER, NULL, (LPARAM)&hk);
+ Hotkey_Register(&hk);
}
diff --git a/plugins/UserInfoEx/svc_reminder.cpp b/plugins/UserInfoEx/svc_reminder.cpp index 7899ccadc4..5b64720656 100644 --- a/plugins/UserInfoEx/svc_reminder.cpp +++ b/plugins/UserInfoEx/svc_reminder.cpp @@ -1210,13 +1210,14 @@ VOID SvcReminderLoadModule(VOID) myCreateServiceFunction(MS_USERINFO_REMINDER_CHECK, CheckService);
myCreateServiceFunction(MS_USERINFO_REMINDER_AGGRASIVEBACKUP, BackupBirthdayService);
+ // register hotkey
HOTKEYDESC hk = { 0 };
hk.cbSize = sizeof(HOTKEYDESC);
hk.pszSection = MODNAME;
hk.pszName = "ReminderCheck";
hk.pszDescription = LPGEN("Check anniversaries");
hk.pszService = MS_USERINFO_REMINDER_CHECK;
- CallService(MS_HOTKEY_REGISTER, NULL, (LPARAM)&hk);
+ Hotkey_Register(&hk);
}
/**
|