procedure TForm1.Button1Click(Sender: TObject);<br>begin<br> if [fsModal]=Form1.FormState then<br> ShowMessage('Form1 是一个Model窗体!');<br><br>详细参考vcl的showmodal的定义。看看showmodal究竟做了什么你就知道了。<br> TFormState = set of (fsCreating, fsVisible, fsShowing, fsModal,<br> fsCreatedMDIChild, fsActivated);