G
guan2000
Unregistered / Unconfirmed
GUEST, unregistred user!
我通过以下代码能够得到外部程序的句柄:
sl := TStringList.Create;
EnumWindows(@EnumWinProc, integer(sl));
for n := 0 to sl.Count-1 do
begin
if Pos('Microsoft Word',sl[n])>0 then
begin
//handle3 能够正确获得.
handle3:=findwindow(nil,pchar(sl[n]));
// handle1 里面的参数该如何写,才能得到编辑区的句柄呢?
handle1:=FindWindowEx(handle3,0,????,nil);??????
还是handle1:=FindWindowEx(handle3,0,nil,????);??????
end;
end;
或者谁有SPY++给我查看以下.(word2000),我没装spy++
sl := TStringList.Create;
EnumWindows(@EnumWinProc, integer(sl));
for n := 0 to sl.Count-1 do
begin
if Pos('Microsoft Word',sl[n])>0 then
begin
//handle3 能够正确获得.
handle3:=findwindow(nil,pchar(sl[n]));
// handle1 里面的参数该如何写,才能得到编辑区的句柄呢?
handle1:=FindWindowEx(handle3,0,????,nil);??????
还是handle1:=FindWindowEx(handle3,0,nil,????);??????
end;
end;
或者谁有SPY++给我查看以下.(word2000),我没装spy++