From 4e601f4ab2d57cab8ba6c97ad30f12446883ec33 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 19 Mar 2016 18:21:17 +0100 Subject: Use event queue. --- plugingui/nativewindow_win32.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugingui') 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) -- cgit v1.2.3