看看这个是不是你要的???<br>两个窗口同时显示为 Active 状态 <br>在form的private中:<br> procedure WMActive(var Msg:TWMActivate);Message WM_ACTIVATE;<br>procedure TFrm_XMTree.WMActive(var Msg: TWMActivate);<br>begin<br> if Msg.Active&lt;&gt;0 then<br> begin //此窗体获得焦点<br> SendMessage(TWinControl(Owner).Handle,WM_NCACTIVATE,-1,0);<br> Windows.SetWindowPos(TWinControl(Owner).Handle,HWND_TOP,0,0,0,0,SWP_NOSIZE or SWP_NOMOVE or SWP_NOACTIVATE);<br> end<br> else begin //此窗体失去焦点<br> SendMessage(Handle,WM_NCACTIVATE,-1,0);<br> SendMessage(TWinControl(Owner).Handle,WM_NCACTIVATE,0,0);<br> end;<br> inherited;<br>end;<br>把TWinControl(Owner).Handle换成你要的(不过这样最好在Form的OnClick事件中加上show,否则只有点标题栏才能切换)。