4 ms·
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
by int_19h 7y ago
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.
- laumars 7y agoIt 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".
- int_19h 7y agoIt 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/nf-winuser-setlayeredwindowattributes 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.
- benibela 7y agoI think it worked in 2K
- tracker1 7y agoIt worked in 2k... used a customized litestep (iirc) theme with win2k for a long time. Definitely made use of the transparency bits.
- laumars 7y agoDid 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).
- laumars 7y agoMy comment is now too old to edit but another poster has provided some good insight https://news.ycombinator.com/item?id=22480864 https://news.ycombinator.com/item?id=22480864
- tracker1 7y agoI'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.