1、窗口位于最上方可以设置FormStyle:=fsStayOnTop;<br>2、固定窗口位置可以截获WM_Moving和WM_Move消息,<br><br>--------------------------------------------------------<br>The WM_MOVING message is sent to a window that the user is moving. By processing this message, an application can monitor the size and position of the drag rectangle and, if needed, change its size or position.<br><br>fwSide = wParam; // edge of window to be moved <br>lprc = (LPRECT) lParam; // screen coordinates of drag rectangle<br><br>--------------------------------------------------------<br>The WM_MOVE message is sent after a window has been moved. <br><br>WM_MOVE <br>xPos = (int) LOWORD(lParam); // horizontal position <br>yPos = (int) HIWORD(lParam); // vertical position <br>