ha:hwnd;
  i:integer;
  begin
ha:=findwindow(nil,pchar(excelapplication1.caption));
showmessage(inttostr(ha));
getwindowrect(ha,posi);
showmessage(inttostr(posi.TopLeft.X));
为何 posi.left,posi.topleft.x 的值均为零,不能正确返回excel窗口的正确位置,
不知道代码错在那里?