A nostalgic deep-dive into Win32 API programming, specifically how to create non-rectangular windows using region objects (HRGN), bitmap-driven shapes, and layered windows with per-pixel alpha. Three working C examples are provided: an elliptical window, a bitmap-shaped window using magenta as a transparency key, and an animated desktop mascot using WS_EX_LAYERED and UpdateLayeredWindow. The post also reflects on why custom-shaped windows largely disappeared — the effort of reimplementing all default window behaviors (dragging, resizing, hit testing, DPI) is high, and desktop UI culture shifted toward reliability over visual novelty.

Sort: