可不可以詳細一點,我寫了一段代碼如下:<br>procedure TFrm_Main.CloseWindow;<br>var<br> HWndCalc: HWND;<br> BtnHWND: HWND;<br>begin<br> HWndCalc := Findwindow(nil,'Microsoft Internet Explorer');<br> if HWndCalc <> 0 then<br> begin<br> BtnHWND := findwindowex(HWndCalc,0,'Tbutton', '取消');<br> SendMessage(BtnHWND,BM_CLICK,0,0);<br> end;<br>end;<br>為什么不能點擊“取消”按鈕?