Ver Mensaje Individual
  #2  
Antiguo 02-06-2008
Avatar de cHackAll
[cHackAll] cHackAll is offline
Baneado?
 
Registrado: oct 2006
Posts: 2.159
Reputación: 20
cHackAll Va por buen camino
Código Delphi [-]
procedure EnumTabs(hWnd: Cardinal; List: TStrings); // IE7
var Buffer: array [0..255] of Char;
begin
 while LongBool(hWnd) do
  begin
   GetClassName(hWnd, @Buffer, SizeOf(Buffer) - 1);
   if not LongBool(lstrcmp(@Buffer, 'TabWindowClass')) then
    begin
     GetWindowText(hWnd, @Buffer, SizeOf(Buffer) - 1);
     List.Add(PChar(@Buffer));
    end;
   hWnd := GetWindow(hWnd, GW_HWNDNEXT);
  end;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
 EnumTabs(GetWindow(FindWindow('IEFrame', nil), GW_CHILD), ListBox1.Items);
end;
Responder Con Cita