reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit c548e6fab31a6fac82124b5552e571ab2ab2a5eb
parent 0da8da6b9f2ff867964ba3d01ef408b8034e30b3
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Thu, 22 Sep 2016 15:28:57 -0700

fix tabbar redraw issue on Windows

Diffstat:
Msrc/about.cpp | 6------
Msrc/control.hpp | 5++++-
2 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/src/about.cpp b/src/about.cpp @@ -128,12 +128,6 @@ void About::setDelegate(const DelegatePtr &delegate, const bool focus) m_menu->autoSizeHeader(); m_list->autoSizeHeader(); -#ifdef _WIN32 - // Without this the first tab would not be redrawn completely on Windows. - // Though I have no idea why... - InvalidateRect(handle(), nullptr, true); -#endif - if(focus) setFocus(); // this also calls show(); } diff --git a/src/control.hpp b/src/control.hpp @@ -31,8 +31,11 @@ public: static void inhibitRedraw(HWND handle, const bool inhibit) { #ifdef WM_SETREDRAW - // WM_SETREDRAW is not supported by SWELL + // not supported by SWELL SendMessage(handle, WM_SETREDRAW, !inhibit, 0); + + if(!inhibit) + InvalidateRect(handle, nullptr, true); #endif }