diff options
author | George Hazan <ghazan@miranda.im> | 2020-01-03 16:54:30 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-01-03 16:54:30 +0300 |
commit | 8c720cdc163a236761442b27b1093861becebea7 (patch) | |
tree | ffeb8149fdf3ff0c49099c1677292bfa09628a60 /src/mir_app | |
parent | 29b99f947573882bffe0a80ae068afa4d5140fbb (diff) |
workaround to avoid numerous problems with manual event handling
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/res/resource.rc | 6 | ||||
-rw-r--r-- | src/mir_app/src/miranda.cpp | 4 | ||||
-rw-r--r-- | src/mir_app/src/resource.h | 1 |
3 files changed, 9 insertions, 2 deletions
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
|