News for hackers. Stuff that matters.
Re:State of the Windows: How many layers of UI inconsistenci... by ridiculous_fish on Saturday June 19, 2021 @02:01AM (#27558176)
Wow! There really are programs which plug into dialogs in this way? Well, that's a new level of compatibility hell. Thanks for the answer.
Re:State of the Windows: How many layers of UI inconsistenci... by tomc1985 on Saturday June 19, 2021 @02:12AM (#27558215)
In the days before heavy security it was quite possible for programs to monkey around with other programs' UI in all sorts of way. A lot of that is still possible from an administrator or SYSTEM-privileged context. Some 15 years ago I wrote an Internet Explorer addon that added stuff to the statusbar by hooking into the IE window's message pump and intercepting winforms calls. Shit was wild.

Growing up in the 90s, I remember an article in Visual Basic Programmer's Journal teaching subclassing in VB by hooking into Notepad and adding a font picker (via a new menu entry that opens the font dialog) to change the text control's typeface. (This was long before MS added that same feature)

Re:State of the Windows: How many layers of UI inconsistenci... by pjmlp on Saturday June 19, 2021 @02:32AM (#27558297)
Yes, Windows is a kind of OOP based OS at its "kernel" (not to mix with OS kernel).

So one way to extend UI components, since its inception, is to request the Windowsclass structure of an existing control, replace its event handler function and then call the "base class" handler for the built in behavior.

Re:State of the Windows: How many layers of UI inconsistenci... by creshal on Saturday June 19, 2021 @02:11AM (#27558208)
Look at Autohotkey for a starter down the rabbit hole of "we don't need APIs, we have a GUI!" and the fallout of people desperately working around it.
Re:State of the Windows: How many layers of UI inconsistenci... by _nub3 on Saturday June 19, 2021 @03:57AM (#27558685)
The good old days with AHK. I remember writing the winsock wrapper library and httpquery wrapper back then, software of which i hope has been long superseeded by now.
Re:State of the Windows: How many layers of UI inconsistenci... by williamdclt on Saturday June 19, 2021 @09:18AM (#27560211)
AHK was how I started programming, good times. When I switched to Linux, this was the main thing that I missed (and I still kind of do on MacOS)
Re:State of the Windows: How many layers of UI inconsistenci... by Someone on Saturday June 19, 2021 @03:56AM (#27558683)
A typical scenario is saving as jpg, where you really want to provide the user the option to select compression level.

That typically is for a single program, though, and by that program. System-wide changes, for example for a product that can compress files on the fly, affect every program using open dialogs.

Re:State of the Windows: How many layers of UI inconsistenci... by underwater on Saturday June 19, 2021 @05:46AM (#27559185)
You say that, but that's standard operating procedure for plugins on web pages.

A node you create could be arbitrarily changed or removed.