D delphi_knight Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-26 #1 怎么获得当前窗口的句柄,比如说:'123.txt 记事本'的句柄是'123.txt 记事本'吗?
N next Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-26 #2 不是。<br><br>var<br> TmpHwnd:HWND;<br>begin<br> TmpHwnd:=FindWindow(nil,'123.txt 记事本');<br> if TmpHwnd<>0 then<br> ShowMessage(IntToStr(TmpHwnd));<br>end;
不是。<br><br>var<br> TmpHwnd:HWND;<br>begin<br> TmpHwnd:=FindWindow(nil,'123.txt 记事本');<br> if TmpHwnd<>0 then<br> ShowMessage(IntToStr(TmpHwnd));<br>end;