I have these little cursor shaped forms that I need to be on top of all the time ...
FormStylealready fsStayOnTop
I am using this code:
SetWindowPos(tempCursor.Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE or SWP_NOSIZE or SWP_NOACTIVATE );
and this (although I don’t know exactly what he is doing):
procedure TCursorFrm.CreateParams(var Params: TCreateParams);
const
WS_EX_NOACTIVATE = $8000000;
begin
inherited;
Params.ExStyle := Params.ExStyle + WS_EX_NOACTIVATE;
end;
but I still can’t get my forms at the top of TMenuItems. How to make my forms stay on top of everything?
source
share