From 416f7178349a36f3c503dd4f1c7d789243bba0ed Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Sat, 11 Apr 2020 18:58:48 +0800 Subject: [PATCH] Update. Signed-off-by: Yuhang Zhao <2546789017@qq.com> --- winnativeeventfilter.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/winnativeeventfilter.cpp b/winnativeeventfilter.cpp index a2c22ed..2bd3cf7 100644 --- a/winnativeeventfilter.cpp +++ b/winnativeeventfilter.cpp @@ -725,10 +725,6 @@ bool WinNativeEventFilter::nativeEventFilter(const QByteArray &eventType, *result = 1; return true; } - case WM_WINDOWPOSCHANGED: { - updateWindow(msg->hwnd); - break; - } default: { break; } @@ -1012,10 +1008,7 @@ void WinNativeEventFilter::updateWindow(HWND handle) { m_lpSetWindowPos(handle, nullptr, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOACTIVATE | SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_NOOWNERZORDER); - m_lpInvalidateRect(handle, nullptr, TRUE); m_lpRedrawWindow(handle, nullptr, nullptr, - RDW_INVALIDATE | RDW_ERASE | RDW_FRAME | - RDW_ALLCHILDREN); - m_lpUpdateWindow(handle); + RDW_INVALIDATE | RDW_UPDATENOW | RDW_NOCHILDREN); } }