From bdf9b26bff9153bd5ee8fe186a370a4fbf33221a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 14 Apr 2024 14:29:37 +0300 Subject: prevent CDlgBase from executing useless resize attempts --- include/m_gui.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/m_gui.h b/include/m_gui.h index 601e22456e..999db8899b 100644 --- a/include/m_gui.h +++ b/include/m_gui.h @@ -487,6 +487,7 @@ protected: MWindow m_hwnd = nullptr; // must be the first data item MWindow m_hwndParent = nullptr; int m_idDialog; + RECT m_rcPrev; bool m_isModal = false; bool m_bInitialized = false; @@ -496,7 +497,7 @@ protected: bool m_bExiting = false; // window received WM_CLOSE and gonna die soon enum { CLOSE_ON_OK = 0x1, CLOSE_ON_CANCEL = 0x2 }; - uint8_t m_autoClose; // automatically close dialog on IDOK/CANCEL commands. default: CLOSE_ON_OK|CLOSE_ON_CANCEL + uint8_t m_autoClose; // automatically close dialog on IDOK/CANCEL commands. default: CLOSE_ON_OK|CLOSE_ON_CANCEL CMPluginBase &m_pPlugin; -- cgit v1.2.3