Similarly, to support Dark Mode as a Win32 application is difficult. There is no easy way to enable it. You can use an API to get your titlebars done, yes, but e.g. for menus and listboxes and other controls you're pretty much on your own! Which is stupid, they could make it straightforward, but it feels like they are trying to get people to use UWP instead so don't bother.
To answer the final part of your question - these APIs have little do with the GUI programming, which is what we use win32 as a common target for. There's no Linux equivalent of win32 for windowing. If you want to create UIs on Linux, you pretty much have to use a toolkit. So targeting win32 and then wrapping that to other OSes makes a decent amount of sense.
Comments:
Posted by smandrap (188.12.128.x) on August 29 2024, 12:44pm:
Thanks for your reply. I don't have a lot of knowledge about the topic so i can't really discuss any point, i just had the impression that Windows is more difficult to "handle" and wanted to know some background :)
Posted by Justin on August 29 2024, 1:14pm:
writing win32 applications is a bit more tedious and quirky than it is difficult, but once you get it down it's straightforward. The upside is it can be very efficient and is (now) easily mapped to other OSes via SWELL...