fix: showMessageDialog should center dialog to parent (#48214)

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot] 2025-09-05 15:21:41 +02:00 committed by GitHub
commit 509801d77b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -160,6 +160,7 @@ DialogResult ShowTaskDialogWstr(gfx::AcceleratedWidget parent,
if (parent) { if (parent) {
config.hwndParent = parent; config.hwndParent = parent;
config.dwFlags |= TDF_POSITION_RELATIVE_TO_WINDOW;
} }
if (default_id > 0) if (default_id > 0)