News for hackers. Stuff that matters.
Re:Windows93 by int_19h on Monday March 02, 2020 @12:55PM (#22466841)
I'm pretty sure the API that changed the window transparency was documented in 2K, because I distinctly remember reading how to do it on MSDN after first seeing one of those in an app.
Re:Windows93 by laumars on Monday March 02, 2020 @05:41PM (#22469850)
It was documented in Windows XP but I think it was Vista that really promoted the use of that effect ("Aero" was it?). Happy to be proved wrong about Windows 2000 but I don't recall seeing any documentation on MSDN back when I was playing around with Windows APIs.

I remember I pinched the API guide for XP thinking "if it works in XP then it must work in Windows 2000" and the reason I remember that so vividly was because it didn't work properly. In fact it caused a kernel panic. Which was pretty much the only time I managed to upset Windows 2000 badly enough to cause a "blue screen of death".

Re:Windows93 by int_19h on Tuesday March 03, 2020 @10:03PM (#22480864)
It definitely worked in 2K - there were many apps that implemented it as a bling feature as soon as it became known. The question is whether it was documented at the time.

If you were able to build it for Win2K, and it compiled successfully, then it was supported - it wouldn't be in the headers otherwise. Even if you build it with XP as a target, and then run on 2K, you'd get a regular Win32 error about not being able to resolve a symbol from a DLL. Getting a BSOD indicates a driver issue.

MSDN also says that it is supported for Win2K+: https://docs.microsoft.com/en-us/windows/win32/api/winuser/n...

Aero in Vista was something else - it was the first version of Windows that did whole desktop composition, and so it could do all kinds of fancy stuff, similar to Compiz that preceded it on Linux. Transparent windows in 2K/XP used per-window composition.

Re:Windows93 by tracker1 on Monday March 02, 2020 @07:10PM (#22470538)
It worked in 2k... used a customized litestep (iirc) theme with win2k for a long time. Definitely made use of the transparency bits.
Re:Windows93 by laumars on Tuesday March 03, 2020 @06:38PM (#22479818)
Did that use Microsoft API though? It might have been possible to hack your own library to do the same thing as I'm pretty sure there were are Win32 APIs to read and write pixels outside of your form -- albeit performance almost certainly wouldn't be on a par doing it that way.

(I say "pretty sure" because I once wrong a program to create a second mouse cursor but which was controlled via a game controller. The logic being I could multi-task my GUI operations. Obviously the logic was flawed and that application proved dumb but it was a fun development exercise none-the-less. Anyhow, I think I drew the cursor directly to screen by reading and writing pixels using some Win32 API; but I'm not super confident of that memory).

Re:Windows93 by laumars on Wednesday March 04, 2020 @02:24AM (#22481837)
My comment is now too old to edit but another poster has provided some good insight

https://news.ycombinator.com/item?id=22480864

Re:Windows93 by tracker1 on Wednesday March 04, 2020 @12:07PM (#22485496)
I'm not entirely sure... I know it worked in 2K, but didn't work for Win9x line, so I'm pretty sure it was in 2K/NT APIs, and not the 3.x/9x/me line. I don't think it was used by any of MS's internal themes until XP though.
Re:Windows93 by benibela on Monday March 02, 2020 @06:25PM (#22470200)
I think it worked in 2K