T
TrustMe
Unregistered / Unconfirmed
GUEST, unregistred user!
var<br> M: tagMSG;<br> Termate: boolean;<br> hwd: Cardinal;<br>begin<br> hwd:= CreateDialog(hInst,'TRMTRM',hParent,@dlgproc);<br> if hwd = 0 then begin<br> MessageBox(0,'窗体初始化失败!','错误',0);<br> Exit;<br> end;<br> ShowWindow(hwd,nCmdShow);<br> UpdateWindow(hwd);<br> Termate:= False;<br> while (Not Termate) and GetMessage(m, hwd, 0, 0) do begin<br> Termate:= (m.message = WM_CLOSE) or (m.message = WM_QUIT) or (m.message = WM_DESTROY);<br> DispatchMessage(m);<br> TranslateMessage(m);<br> end;<br>end;<br>像这样创建的窗体,怎么ShowModal,求良策!!<br>不要告诉我去看Forms单元里的代码,我看了,没懂,求良策!<br>最好能给我个例子!!先谢谢了!!