I want to create a window that will be the main window and that Windows itself recognizes as a main application window. However, when I make my window borderless, and witho
A bit icky, but you can set the window region by putting this in YourForm.OnShow event:
var
r: TRect;
begin
r := ClientRect;
OffsetRect(r, 0, GetSystemMetrics(SM_CYCAPTION));
OffsetRect(r, GetSystemMetrics(SM_CXFRAME), GetSystemMetrics(SM_CYFRAME));
SetWindowRgn(Handle,
CreateRectRgn(
r.Left, r.Top,
ClientWidth + r.Left, ClientHeight + r.Top), True);