Win32 Window Custom Title Bar (Caption)
kubyshkin.name
kubyshkin.name
... and this is why in Windows 12, the compositor switches into a special mode if a window tries to draw the very top line of pixels in a slightly darker color than the rest of its pixels ...
On non-compositing windowing systems each window is designated a region of the front buffer to draw directly to it. Drawing outside that region was unrestricted and easy.
The rounded corners in Windows XP weren't hard-coded anywhere, they were just transparent parts of the bitmaps used in the theme engine. Even though they were transparent, they behaved like the opaque parts of the window border.
(I only ask because you sound knowledgeable and your answer implies some hefty interesting legacy)
A better way to put it is OP is a "reverse engineer" whereas you sound like a "forward engineer"
As for Windows XP's transparent corners, I used to make msstyle themes back in that era, so I happened to know how the theme engine works.
I don’t know for sure what Microsoft used for their themes but it is far more likely they used the mechanism that already existed for arbitrarily shaped windows, the clipping regions, which happen to nicely match what they tried to do with these rounded windows, instead of using bitmaps, which is less efficient and new.
Defamation and blasphemy of the highest order. In XP the GUI was fully hardware accelerated and highly performant. Possibly the most perfect thing to have ever been created. In vista this was all torn out and replaced with software rendering that ran like treacle. All for a transparent window gimmick.
Windows XP supported partially transparent windows, but I'm not sure if this required hardware acceleration or there was also a software rendering fallback.
there's plenty of things I don't like in newer windows versions, but the introduction of compositing is not one of them