Consider exposing an hwnd-scoped version of UpdateLayout
Open
Enhancement Requested
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
Moved from [internal bug](https://devdiv.visualstudio.com/DevDiv/_workitems/edit/781867).
HwndTarget calls UpdateLayout while handling WM_RESIZE. It needs the updated layout for its window, but UpdateLayout deals with all windows on the thread. As we’ve seen, this can lead to undesirable re-entrancy. Why should a resize for one hwnd need to touch anything belonging to an unrelated hwnd?
Consider exposing an hwnd-scoped version of UpdateLayout.
Contributor guide
Assessment
This issue has not been assessed yet.