diff options
Diffstat (limited to 'plugins/SpellChecker/src')
-rw-r--r-- | plugins/SpellChecker/src/utils.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/plugins/SpellChecker/src/utils.cpp b/plugins/SpellChecker/src/utils.cpp index 82e7d73de3..0c3e490112 100644 --- a/plugins/SpellChecker/src/utils.cpp +++ b/plugins/SpellChecker/src/utils.cpp @@ -1307,16 +1307,14 @@ int ShowPopupMenu(HWND hwnd, HMENU hMenu, POINT pt, HWND hwndOwner) return selection;
}
-int MsgWindowEvent(WPARAM, LPARAM lParam)
+int MsgWindowEvent(WPARAM uType, LPARAM lParam)
{
- MessageWindowEventData *event = (MessageWindowEventData *)lParam;
- if (event == nullptr)
- return 0;
+ auto *pDlg = (CSrmmBaseDialog *)lParam;
- if (event->uType == MSG_WINDOW_EVT_OPEN)
- AddContactTextBox(event->hContact, event->hwndInput, "DefaultSRMM", TRUE, event->hwndWindow);
- else if (event->uType == MSG_WINDOW_EVT_CLOSING)
- RemoveContactTextBox(event->hwndInput);
+ if (uType == MSG_WINDOW_EVT_OPEN)
+ AddContactTextBox(pDlg->m_hContact, pDlg->GetInput(), "DefaultSRMM", TRUE, pDlg->GetHwnd());
+ else if (uType == MSG_WINDOW_EVT_CLOSING)
+ RemoveContactTextBox(pDlg->GetInput());
return 0;
}
|