[PR #9789] Propagate the hosting HWND to the new IFileDialogs #27757

Closed
opened 2026-01-31 09:24:03 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/9789

State: closed
Merged: Yes


This is required to maintain the modality of the dialogs, which we lost
when we moved from Pickers to IFileDialog. The HWND hosting Window API
we dreamed up is incompatible with IModalDialog, because IModalDialog
requires the HWND immediately upon Show. We're smuggling it in a
uint64, as is tradition.

zadjii-msft noticed this in #9760.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/9789 **State:** closed **Merged:** Yes --- This is required to maintain the modality of the dialogs, which we lost when we moved from Pickers to IFileDialog. The HWND hosting Window API we dreamed up is incompatible with IModalDialog, because IModalDialog requires the HWND immediately upon `Show`. We're smuggling it in a uint64, as is tradition. zadjii-msft noticed this in #9760.
claunia added the pull-request label 2026-01-31 09:24:03 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#27757