From 8c720cdc163a236761442b27b1093861becebea7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 3 Jan 2020 16:54:30 +0300 Subject: workaround to avoid numerous problems with manual event handling --- src/mir_app/res/resource.rc | 6 ++++++ src/mir_app/src/miranda.cpp | 4 ++-- src/mir_app/src/resource.h | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) (limited to 'src/mir_app') diff --git a/src/mir_app/res/resource.rc b/src/mir_app/res/resource.rc index d8671c3df3..ae65720b51 100644 --- a/src/mir_app/res/resource.rc +++ b/src/mir_app/res/resource.rc @@ -774,6 +774,12 @@ BEGIN EDITTEXT IDC_CREDITSFILE,4,32,202,67,ES_CENTER | ES_MULTILINE | ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER | WS_VSCROLL END +IDD_EMPTY DIALOGEX 0, 0, 212, 131 +STYLE DS_FIXEDSYS | WS_POPUP +CAPTION "Hidden window" +BEGIN +END + ///////////////////////////////////////////////////////////////////////////// // // DESIGNINFO diff --git a/src/mir_app/src/miranda.cpp b/src/mir_app/src/miranda.cpp index 758fe9f89f..00771a987a 100644 --- a/src/mir_app/src/miranda.cpp +++ b/src/mir_app/src/miranda.cpp @@ -273,9 +273,8 @@ class MSystemWindow : public CDlgBase public: MSystemWindow() : - CDlgBase(g_plugin, -1) + CDlgBase(g_plugin, IDD_EMPTY) { - m_hwnd = CreateWindowEx(0, L"STATIC", nullptr, 0, 0, 0, 0, 0, nullptr, nullptr, g_plugin.getInst(), nullptr); } }; @@ -343,6 +342,7 @@ int WINAPI mir_main(LPTSTR cmdLine) OpenSSL_Init(); g_pSystemWindow = new MSystemWindow(); + g_pSystemWindow->Create(); int result = 0; if (LoadDefaultModules()) { diff --git a/src/mir_app/src/resource.h b/src/mir_app/src/resource.h index 5afe0b42e0..fc2881993f 100644 --- a/src/mir_app/src/resource.h +++ b/src/mir_app/src/resource.h @@ -24,6 +24,7 @@ #define IDD_ADDED 115 #define IDD_ENTER_STRING 116 #define IDI_ADDGROUP 117 +#define IDD_EMPTY 118 #define IDD_AUTHREQ 121 #define IDD_DETAILS 125 #define IDD_HISTORY 127 -- cgit v1.2.3