native DirectX windows #2973
meirumeiru
started this conversation in
Dev team discussions
Replies: 1 comment 5 replies
-
I feel that you may have misunderstood something big about how things work. While it is true that DXGI, DWM and composition enables a lot of the more modern stuff, it doesn't force it. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Idea: Combine DirectX and GDI to solve all the interoperability problems.
In early Windows we (at least those old enough) had Windows with a HWND and a DC and messages and we painted with GDI. Everyone knew what's going on.
Nowadays we have a mess. Why? Well, mainly because of DirectX. Because DirectX doesn't really have "Windows" or HWNDs and it doesn't (or didn't) mix well with GDI. That's why we need Xaml-Islands and stuff like that and why we have to re-invent the wheel for mouse messages and everything.
But, what if...
... Microsoft would extend the current system just a little bit. What if they'd extend the WNDCLASSEX struct? If they'd add a new class style CS_D3DDC and would provide the needed painting "DC" (of course, the equivalent for D3D) via the "BeginPaint" and "GetDC" functions (or new BeginPaintD and GetDCD functions).
Then we could use techniques we know. We would have "Windows" again even in DirectX (those would be "dummy Windows" internally) and we could mix GDI controls and windows with DirectX controls and windows by letting the system return a DirectX-DC for GDI controls on top of DirectX dialogs.
It would also allow easier techniques to support known techniques like screen readers and printing.
I think, it's at least worth to talk about it at a coffee break... somewhere in Redmond... don't you think?
Beta Was this translation helpful? Give feedback.
All reactions