N ngdsjck Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-20 #1 1、利用API对窗口操作时, 如何取得一启动主窗口下,某一个子窗口的句柄?<br>2、若取得该子窗口句柄后, 如何取得该窗口下一编辑框的内容?
张 张无忌 Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-20 #2 这几个 函数配合<br> <br> hwnd:=GetForegroundWindow();<br> hwnd:=Getwindow(hwnd,GW_HWNDFIRST);<br> hwnd:=Getwindow(hwnd,GW_HWNDNEXT);
这几个 函数配合<br> <br> hwnd:=GetForegroundWindow();<br> hwnd:=Getwindow(hwnd,GW_HWNDFIRST);<br> hwnd:=Getwindow(hwnd,GW_HWNDNEXT);
N ngdsjck Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-20 #3 张无忌:<br> 我采用过上述函数, 但不能取得一个主窗口下子窗口的句柄。
B book523 Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-20 #6 可以用findwindowEx函数取得edit的hwnd
N ngdsjck Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-20 #7 请问BOOK523,在程序上是如何实现,能否举一例子?
L lfpsoft Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-21 #8 var<br> H : THandle;<br><br>H:= FindWindow('Shell_TrayWnd',nil);<br>H :=Findwindowex(H,0,'Button',nil);//开始菜单按扭的句柄
var<br> H : THandle;<br><br>H:= FindWindow('Shell_TrayWnd',nil);<br>H :=Findwindowex(H,0,'Button',nil);//开始菜单按扭的句柄