diff options
-rw-r--r-- | plugingui/nativewindow_win32.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugingui/nativewindow_win32.cc b/plugingui/nativewindow_win32.cc index edccb01..1ab4126 100644 --- a/plugingui/nativewindow_win32.cc +++ b/plugingui/nativewindow_win32.cc @@ -372,8 +372,9 @@ void NativeWindowWin32::hide() void NativeWindowWin32::redraw() { - RedrawWindow(m_hwnd, nullptr, nullptr, RDW_ERASE|RDW_INVALIDATE); - UpdateWindow(m_hwnd); + InvalidateRect(m_hwnd, 0, TRUE); + //RedrawWindow(m_hwnd, nullptr, nullptr, RDW_ERASE|RDW_INVALIDATE); + //UpdateWindow(m_hwnd); } void NativeWindowWin32::setCaption(const std::string &caption) |