Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > API de Windows
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

 
 
Herramientas Buscar en Tema Desplegado
  #4  
Antiguo 22-07-2006
rounin rounin is offline
Miembro
 
Registrado: sep 2005
Posts: 43
Poder: 0
rounin Va por buen camino
Saludos!

En principio, si conoces una parte del nombre de la ventana,
puedes usar EnumWindows.
Por ejemplo:

Código Delphi [-]
 
function EnumFunc(hWnd: THandle; lParam: Longint): BOOL; stdcall;
var s: string;
    L: Integer;
begin
  Result := True;
  L := GetWindowTextLength(hWnd);
  SetLength(s, L);
  GetWindowText(hWnd, @s[1], L+1);
  if (   Pos('Microsoft Internet Explorer', s) > 0  )and
     (   Pos('Problema con el FindWindow',  s) > 0  )then
  begin
    Result := False;
    TForm1(lParam).Caption := 'hwnd = '+IntToStr(hWnd); 
  end;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  EnumWindows(@EnumFunc, Longint(Self));
end;
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Problemas con FindWindow Fita API de Windows 4 03-03-2004 19:14:00


La franja horaria es GMT +2. Ahora son las 16:08:30.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi