这和ShowModal是不一样的,ShowModal之后,主窗体就不可用了。<br>你要做的其实是“总在最前”,<br>在FormCreate中加一句<br>SetWindowPos(handle,HWND_TopMost,0,0,0,0,<br> SWP_NOMOVE or SWP_NOSIZE or SWP_NOACTIVATE);<br>就可以了。<br><br>拖动无标题窗体:<br>procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;<br> Shift: TShiftState; X, Y: Integer);<br>begin<br> ReleaseCapture;<br> SendMessage(handle,WM_SysCommand,$F012,0);<br>end;<br><br>