G goddy Unregistered / Unconfirmed GUEST, unregistred user! 2003-09-17 #1 HWND hWndCap, hBtn; hWndCap=FindWindow(NULL,"window窗口"); 如何取得窗口下的所有元件
下 下雨了 Unregistered / Unconfirmed GUEST, unregistred user! 2003-09-25 #2 For i:=0 to form1.form1.ControlCount-1 do begin if form1.Controls is Tedit then begin //进行你的操作 end; end
For i:=0 to form1.form1.ControlCount-1 do begin if form1.Controls is Tedit then begin //进行你的操作 end; end
D dedema Unregistered / Unconfirmed GUEST, unregistred user! 2003-09-25 #3 如上所示可以. 如果是别人的程序,在取得句柄后,用FindWindowEx函数.... 去看帮助!
孔 孔明.net Unregistered / Unconfirmed GUEST, unregistred user! 2003-09-25 #4 hp := FindWindow(nil, 'window窗口); hMemo:=FindWindowEx(hp,0,'TEdit',nil); OR hMemo := ChildWindowFromPointEx(hP, Point(19, 355), CWP_ALL);
hp := FindWindow(nil, 'window窗口); hMemo:=FindWindowEx(hp,0,'TEdit',nil); OR hMemo := ChildWindowFromPointEx(hP, Point(19, 355), CWP_ALL);
G goddy Unregistered / Unconfirmed GUEST, unregistred user! 2003-09-26 #5 我用 EnumChildWindows(hFocus,(FARPROC)ChildProc,NULL); 搞定了