diff options
author | George Hazan <george.hazan@gmail.com> | 2023-09-21 14:34:07 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-09-21 14:34:07 +0300 |
commit | c9b740a178828eae5cc4be7ab054e5f26d3a27e7 (patch) | |
tree | e15ce76cb41feb3375a76c95d861294b899bfe48 /plugins/FavContacts/src | |
parent | 6024e32d70da7a7c703de51e30b6c6407df8a745 (diff) |
MessageWindowEventData: useless structure removed
Diffstat (limited to 'plugins/FavContacts/src')
-rw-r--r-- | plugins/FavContacts/src/services.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/FavContacts/src/services.cpp b/plugins/FavContacts/src/services.cpp index 4d0efee903..b3956b84b5 100644 --- a/plugins/FavContacts/src/services.cpp +++ b/plugins/FavContacts/src/services.cpp @@ -42,20 +42,20 @@ INT_PTR svcOpenContact(WPARAM wParam, LPARAM) return 0;
}
-int ProcessSrmmEvent(WPARAM, LPARAM lParam)
+int ProcessSrmmEvent(WPARAM uType, LPARAM lParam)
{
- MessageWindowEventData *event = (MessageWindowEventData *)lParam;
+ auto *pDlg = (CSrmmBaseDialog *)lParam;
- if (event->uType == MSG_WINDOW_EVT_OPEN) {
+ if (uType == MSG_WINDOW_EVT_OPEN) {
if (!hDialogsList)
hDialogsList = WindowList_Create();
- WindowList_Add(hDialogsList, event->hwndWindow, event->hContact);
+ WindowList_Add(hDialogsList, pDlg->GetHwnd(), pDlg->m_hContact);
- uint8_t fav = g_plugin.getByte(event->hContact, "IsFavourite");
- Srmm_SetIconFlags(event->hContact, MODULENAME, 0, fav ? 0 : MBF_DISABLED);
+ uint8_t fav = g_plugin.getByte(pDlg->m_hContact, "IsFavourite");
+ Srmm_SetIconFlags(pDlg->m_hContact, MODULENAME, 0, fav ? 0 : MBF_DISABLED);
- if (event->hContact == hContactToActivate) {
- HWND hwndRoot = event->hwndWindow;
+ if (pDlg->m_hContact == hContactToActivate) {
+ HWND hwndRoot = pDlg->GetHwnd();
while (HWND hwndParent = GetParent(hwndRoot))
hwndRoot = hwndParent;
@@ -68,9 +68,9 @@ int ProcessSrmmEvent(WPARAM, LPARAM lParam) hContactToActivate = NULL;
}
- else if (event->uType == MSG_WINDOW_EVT_CLOSING) {
+ else if (uType == MSG_WINDOW_EVT_CLOSING) {
if (hDialogsList)
- WindowList_Remove(hDialogsList, event->hwndWindow);
+ WindowList_Remove(hDialogsList, pDlg->GetHwnd());
}
return 0;
|