B
bcfans
Unregistered / Unconfirmed
GUEST, unregistred user!
◆还是关于窗体最小化的问题?<br>procedure TForm1.FormCreate(Sender: TObject);<br>begin<br> SetWindowLong(Application.Handle, GWL_EXSTYLE, WS_EX_TOOLWINDOW);<br>end;<br><br>procedure TForm1.FormShow(Sender: TObject);<br>begin<br> SendMessage(Application.Handle, WM_SYSCOMMAND, SC_MINIMIZE, 0); <br> ShowWindow(Application.Handle, SW_HIDE);<br>//启动时标题栏还是会显示一下再消失,不太好看,如何让它不显示而直接隐藏?<br>end;<br><br>另外在任务管理器中观察到当窗体最小化时程序所占的内存明显减小,请问是什么原理?