diff options
author | George Hazan <ghazan@miranda.im> | 2021-05-15 23:01:52 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-05-15 23:01:52 +0300 |
commit | 615afbd839b22a7a170c477481ef67e5603b9709 (patch) | |
tree | 60e94f6264420b630edf11b424cea2e8beb9370d /src/mir_core | |
parent | d58ff2a433bb441aef9c8f87de14cf27594baaf9 (diff) |
SetDraw(bool bEnable) - a wrapper for WM_SETREDRAW command
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/CCtrlBase.cpp | 5 | ||||
-rw-r--r-- | src/mir_core/src/CDlgBase.cpp | 5 | ||||
-rw-r--r-- | src/mir_core/src/mir_core.def | 2 | ||||
-rw-r--r-- | src/mir_core/src/mir_core64.def | 2 |
4 files changed, 14 insertions, 0 deletions
diff --git a/src/mir_core/src/CCtrlBase.cpp b/src/mir_core/src/CCtrlBase.cpp index 800e8c693d..aa684707e0 100644 --- a/src/mir_core/src/CCtrlBase.cpp +++ b/src/mir_core/src/CCtrlBase.cpp @@ -116,6 +116,11 @@ void CCtrlBase::SetTextA(const char *text) ::SetWindowTextA(m_hwnd, text); } +void CCtrlBase::SetDraw(bool bEnable) +{ + ::SendMessage(m_hwnd, WM_SETREDRAW, bEnable, 0); +} + void CCtrlBase::SetInt(int value) { wchar_t buf[32] = { 0 }; diff --git a/src/mir_core/src/CDlgBase.cpp b/src/mir_core/src/CDlgBase.cpp index bc051554de..f9f5f47a06 100644 --- a/src/mir_core/src/CDlgBase.cpp +++ b/src/mir_core/src/CDlgBase.cpp @@ -137,6 +137,11 @@ void CDlgBase::SetCaption(const wchar_t *ptszCaption) SetWindowText(m_hwnd, ptszCaption); } +void CDlgBase::SetDraw(bool bEnable) +{ + ::SendMessage(m_hwnd, WM_SETREDRAW, bEnable, 0); +} + void CDlgBase::Show(int nCmdShow) { if (m_hwnd == nullptr) diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def index 3702d84864..b823bc88f8 100644 --- a/src/mir_core/src/mir_core.def +++ b/src/mir_core/src/mir_core.def @@ -1505,3 +1505,5 @@ TimeZone_GetSystemTime @1692 ?SelectData@CCtrlCombo@@QAEHJ@Z @1728 NONAME
?SetCurSel@CCtrlListView@@QAEXH@Z @1729 NONAME
?GetCurData@CCtrlCombo@@QBEJXZ @1730 NONAME
+?SetDraw@CCtrlBase@@QAEX_N@Z @1731 NONAME
+?SetDraw@CDlgBase@@QAEX_N@Z @1732 NONAME
diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def index ae7037fbdd..e4515d39d6 100644 --- a/src/mir_core/src/mir_core64.def +++ b/src/mir_core/src/mir_core64.def @@ -1505,3 +1505,5 @@ TimeZone_GetSystemTime @1692 ?SelectData@CCtrlCombo@@QEAAH_J@Z @1728 NONAME
?SetCurSel@CCtrlListView@@QEAAXH@Z @1729 NONAME
?GetCurData@CCtrlCombo@@QEBA_JXZ @1730 NONAME
+?SetDraw@CCtrlBase@@QEAAX_N@Z @1731 NONAME
+?SetDraw@CDlgBase@@QEAAX_N@Z @1732 NONAME
|