summaryrefslogtreecommitdiff
path: root/plugins/AsSingleWindow/src/AsSingleWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AsSingleWindow/src/AsSingleWindow.cpp')
-rw-r--r--plugins/AsSingleWindow/src/AsSingleWindow.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/AsSingleWindow/src/AsSingleWindow.cpp b/plugins/AsSingleWindow/src/AsSingleWindow.cpp
index f34e862cef..fbcdb36b6b 100644
--- a/plugins/AsSingleWindow/src/AsSingleWindow.cpp
+++ b/plugins/AsSingleWindow/src/AsSingleWindow.cpp
@@ -28,18 +28,15 @@ CMPlugin::CMPlugin() :
/////////////////////////////////////////////////////////////////////////////////////////
-static int MsgWindowEvent(WPARAM, LPARAM lParam)
+static int MsgWindowEvent(WPARAM uType, LPARAM lParam)
{
- MessageWindowEventData* data = (MessageWindowEventData*)lParam;
+ auto *pDlg = (CSrmmBaseDialog *)lParam;
- if (data == nullptr)
- return 0;
-
- switch (data->uType) {
+ switch (uType) {
case MSG_WINDOW_EVT_OPEN:
// Здесь можно отлавливать только открытие окна,
// т.к. закрытие может быть закрытием вкладки
- windowAdd(data->hwndWindow, false);
+ windowAdd(pDlg->GetHwnd(), false);
break;
}