Форум: "WinAPI";
Текущий архив: 2002.04.29;
Скачать: [xml.tar.bz2];
ВнизКак достать заголовки всех открытых окон Intenet Explorer? Найти похожие ветки
← →
rambo69 (2002-02-09 16:37) [3]procedure sbor;
var Wnd : hWnd;
buff: array [0..127] of char;
str:string;
begin
LIST1.CLEAR;
str:="Microsoft Internet Explorer";
Wnd := GetWindow(chatform.Handle, gw_HWndFirst);
while Wnd <> 0 do begin {Не показываем:}
if IsWindowVisible(Wnd) and {-Невидимые окна}
(GetWindow(Wnd, gw_Owner) = 0) and {-Дочернии окна}
(GetWindowText(Wnd, buff, sizeof(buff)) <> 0) {-Окна без заголовков}
then begin
GetWindowText(Wnd, buff, sizeof(buff));
if pos(str,StrPas(buff))>0
then list1.items.add(StrPas(buff));
end;
Wnd := GetWindow(Wnd, gw_hWndNext);
end;
end;
Страницы: 1 вся ветка
Форум: "WinAPI";
Текущий архив: 2002.04.29;
Скачать: [xml.tar.bz2];
Память: 0.43 MB
Время: 0.006 c