S szmh Unregistered / Unconfirmed GUEST, unregistred user! 2006-05-14 #2 procedure TForm1.ApplicationEvents1Minimize(Sender: TObject); begin form1.hide; end;
X xianguo Unregistered / Unconfirmed GUEST, unregistred user! 2006-05-14 #3 procedure WMSysCommand(var Msg: TWMSysCommand); message WM_SYSCOMMAND; procedure TForm1.WMSysCommand(var Msg: TWMSysCommand); begin if Msg.CmdType = SC_MINIMIZE then ... inherited; end;
procedure WMSysCommand(var Msg: TWMSysCommand); message WM_SYSCOMMAND; procedure TForm1.WMSysCommand(var Msg: TWMSysCommand); begin if Msg.CmdType = SC_MINIMIZE then ... inherited; end;
我 我爱PASCAL Unregistered / Unconfirmed GUEST, unregistred user! 2006-05-14 #4 xianguo的方法才是完美的解决方案, szmh,的方法在最小化时可以, 但你调用form1.show,就会问题.