Windows QPA: Correctly check for fixed sized windows in WM_DPICHANGED
Use Qt's flags instead of WS_DLGFRAME which matches WS_CAPTION as
well (WS_BORDER | WS_DLGFRAME).
Amends 886ce572d6
.
Task-number: QTBUG-58959
Change-Id: Ifdc106667d67cc6f5d3611806aae1035742fb882
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
50a7da53a4
commit
c854fc5a6b
@ -1106,7 +1106,7 @@ bool QWindowsContext::windowsProc(HWND hwnd, UINT message,
|
||||
#endif
|
||||
} break;
|
||||
case QtWindows::DpiChangedEvent: {
|
||||
if (GetWindowLongPtr(hwnd, GWL_STYLE) & WS_DLGFRAME)
|
||||
if (platformWindow->window()->flags().testFlag(Qt::MSWindowsFixedSizeDialogHint))
|
||||
return false; // Fixed-size window should not be resized
|
||||
|
||||
platformWindow->setFlag(QWindowsWindow::WithinDpiChanged);
|
||||
|
Loading…
Reference in New Issue
Block a user