Please excuse a comment from somebody who has not touched Windows for decades.
No, it is the duty of OS, to cut the image in the corner, not the duty of app. Image is painted via WinAPI.
It is, but there's potential for confusion here if inheriting extremely old Windows code.
When the grip was first introduced it was possible to mark an arbitrary bitmap as having the grip property for a window, hence e.g. the screenshot attached.
procedure TPollPxxD3.GripImageMouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
(* Magic code from adr@cix who notes "The value 8 is a complete mystery *)
(* to me, I can't find any documentation on it. I found it by *)
(* experimentation." *)
begin
ReleaseCapture;
Perform(WM_SYSCOMMAND, SC_SIZE + 8, 0)
end (* TPollPxxD3.GripImageMouseDown *) ;
Legacy code might still have something like that, which could easily confuse a modern OS.
MarkMLl