F float Unregistered / Unconfirmed GUEST, unregistred user! 2000-10-29 #1 如何取得顶层窗口(top window)的句柄(注:此窗口不是child window) 应该使用什么API函数,请高手指教,多谢,很急!!!
U unreal Unregistered / Unconfirmed GUEST, unregistred user! 2000-10-29 #2 FindWindow IsWindowVisible
F fifa2000 Unregistered / Unconfirmed GUEST, unregistred user! 2000-10-29 #3 对,你可以用findwindow findwindow(nil,你的窗体名)
Z zeroworld Unregistered / Unconfirmed GUEST, unregistred user! 2000-10-29 #4 procedure TForm1.Button1Click(Sender: TObject); var WindowText: array[0..255] of char; TheWindow: HWND; ThePreviousWindow: HWND; begin {get the handle to the Form1 child window at the top of the Z order relative to its siblings} TheWindow:=GetTopWindow(Form1.Handle); end;
procedure TForm1.Button1Click(Sender: TObject); var WindowText: array[0..255] of char; TheWindow: HWND; ThePreviousWindow: HWND; begin {get the handle to the Form1 child window at the top of the Z order relative to its siblings} TheWindow:=GetTopWindow(Form1.Handle); end;