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

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/9789
Author: @DHowett
Created: 4/12/2021
Status: ✅ Merged
Merged: 4/12/2021
Merged by: @undefined

Base: main ← Head: dev/duhowett/and_re_modal_ize_them


📝 Commits (1)

  • cda3a94 Propagate the hosting HWND to the new IFileDialogs

📊 Changes

4 files changed (+19 additions, -8 deletions)

View changed files

📝 src/cascadia/TerminalSettingsEditor/MainPage.cpp (+5 -0)
📝 src/cascadia/TerminalSettingsEditor/MainPage.h (+1 -0)
📝 src/cascadia/TerminalSettingsEditor/MainPage.idl (+1 -0)
📝 src/cascadia/TerminalSettingsEditor/Profiles.cpp (+12 -8)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/9789 **Author:** [@DHowett](https://github.com/DHowett) **Created:** 4/12/2021 **Status:** ✅ Merged **Merged:** 4/12/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/duhowett/and_re_modal_ize_them` --- ### 📝 Commits (1) - [`cda3a94`](https://github.com/microsoft/terminal/commit/cda3a94a6750c6b9135b2c627763a2051eceb89f) Propagate the hosting HWND to the new IFileDialogs ### 📊 Changes **4 files changed** (+19 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalSettingsEditor/MainPage.cpp` (+5 -0) 📝 `src/cascadia/TerminalSettingsEditor/MainPage.h` (+1 -0) 📝 `src/cascadia/TerminalSettingsEditor/MainPage.idl` (+1 -0) 📝 `src/cascadia/TerminalSettingsEditor/Profiles.cpp` (+12 -8) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:24:01 +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#27752