The border of any window is controlled by the OS, not the application.
What about
WM_NCPAINT?
Nothing stops you from setting your borderstyle to bsNone and draw your own (though you also need to handle window movement yourself then).
Yep, but if I set the
BorderStyle to
bsNone, then I will automatically lose the system context menu, which is available by clicking LMB on the form icon or RMB on caption bar, or by pressing
Alt+Space. And, because of this, I will lose the whole system mechanism to moving and resizing the form too.
I'm constantly thinking about custom skin for my application, because I need a dark skin and the controls' appearance similar to those on Windows 10, available on any OS and not dependent on system theme. But, at the same time, I want to use basic LCL controls, because those are used in the whole project.
And I have no idea what to do... Maybe hack/override the current widgetset?