This commit is contained in:
zhuzichu 2023-12-15 11:25:54 +08:00
parent 9ee50a585a
commit 7ba06d183d

View File

@ -45,6 +45,12 @@ bool FramelessEventFilter::nativeEventFilter(const QByteArray &eventType, void *
return true; return true;
} }
return false; return false;
}else if(uMsg == WM_NCCALCSIZE){
NCCALCSIZE_PARAMS& sz = *reinterpret_cast<NCCALCSIZE_PARAMS*>(msg->lParam);
if (sz.rgrc[0].top != 0)
sz.rgrc[0].top -= 1;
*result = WVR_REDRAW;
return true;
} }
return false; return false;
#endif #endif