Windows with Delphi Windows API (94) Windows Filesystem (41) Windows Forms (69) Windows Graphics (38)
Exchange Links About this site Links to us 
|
Have a window stay on top all the time
This article has not been rated yet. After reading, feel free to leave comments and rate it.
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;
| |  | |  |
Comments:
|