Re:Fibers: An Elegant Windows API
by TravHatesMe on Friday March 29, 2019 @11:10AM
(#19522340)
.NET and WPF are an abstraction of win32, I view it as a step in the right direction. How did .NET people cause everything to go downhill?
[ Parent
| on HN ]
Especially WPF is not an abstraction of Win32. Maybe Winforms could be called that but certainly not any of the XAML dialects.
Re:Fibers: An Elegant Windows API
by TravHatesMe on Friday March 29, 2019 @11:55AM
(#19522737)
WPF is deeply integrated with Win32. For example it abstracts away the win32 message pump design. I'd call that an abstraction.
Yes, it abstracts it to the extent that it doesn't resemble Win32 anymore. It's something else.
Re:Fibers: An Elegant Windows API
by jjaredsimpson on Friday March 29, 2019 @02:31PM
(#19524277)
I would have to agree. Win32 is immediate mode, while WPF is retained scene graph.
It's not an abstraction its a complete overhaul.
MFC is an abstraction to me.
As far as I know WPF is built on Direct whereas MFC and Winforms are based on Win32.
Re:Fibers: An Elegant Windows API
by jjaredsimpson on Saturday March 30, 2019 @08:38AM
(#19529103)
That's my understanding as well. Point spy at a WPF app and you see one top level HWND which is just hosting a DX context
WPF is a lot closer to an abstraction over Direct2D than Win32. If you use both of those APIs a lot, you start to realize they have a lot of classes with the same name that do the same thing.
Re:Fibers: An Elegant Windows API
by contextfree on Friday March 29, 2019 @05:06PM
(#19525684)
The difference is that WinForms uses some of the actual higher-level UI widgets and layout system from Win32/USER, WPF just uses its message pump and other low-level windowing/IO routing mechanisms, and builds all its own bespoke composition, layout and controls on top of that.