This commit is contained in:
朱子楚\zhuzi 2023-12-28 21:30:27 +08:00
parent bf074da658
commit 823721ab8c

View File

@ -77,7 +77,18 @@ bool FramelessEventFilter::nativeEventFilter(const QByteArray &eventType, void *
{
return false;
}
if(uMsg == WM_NCCALCSIZE){
const WPARAM wParam = msg->wParam;
const LPARAM lParam = msg->lParam;
if(uMsg == WM_WINDOWPOSCHANGING){
WINDOWPOS* wp = reinterpret_cast<WINDOWPOS*>(lParam);
if (wp != nullptr && (wp->flags & SWP_NOSIZE) == 0)
{
wp->flags |= SWP_NOCOPYBITS;
*result = DefWindowProc(hwnd, uMsg, wParam, lParam);
return true;
}
return false;
}else if(uMsg == WM_NCCALCSIZE){
*result = WVR_REDRAW;
return true;
}else if(uMsg == WM_NCPAINT){