Mega Code Archive

 
Categories / Delphi / Examples
 

Have a window stay on top all the time

The following code results in a window that stays on top all the time, even when the main application form is in the background: Minitool := TMinitool.Create(Self); Application.NormalizeTopMosts; SetWindowPos(Minitool.Handle, HWND_TOPMOST, 0,0,0,0, SWP_NOACTIVATE+SWP_NOMOVE+SWP_NOSIZE); Minitool.Show;