Top.Mail.Ru
Мастера DELPHI, Delphi programming community Титульная страница Поиск, карта сайта Написать письмо 
| Новости | Поиск | FAQ | Статьи | Книги | Новости VCL |
| Форумы ЧАТ | Орешник | KOL и MCK |
Форумы -» Основная («Начинающим»)/ Базы / WinAPI / Компоненты / Сети / Media / Игры / Corba и COM / KOL / FreePascal / .Net / Прочее / RSDN.ORG

« предыдущая ветвь | форум | следующая ветвь »

Как получить Handle окна, находящегося под курсором?


Cosinus ©   (2004-11-12 12:37:00) 

Собственно Sabj.


Кириешки   (2004-11-12 23:56:00) [1]

var
 p: TPoint;
 handle : thandle;
begin
GetCursorPos(p);
handle :=WindowFromPoint(p);
end


GuAV   (2004-11-12 20:25:00) [2]

Cosinus ©   (12.11.04 12:56) [3]
The order of the handles in the list depends on the Z orderof the child windows.

Надо думать что самое верхнее будет получено, а остальные не требуются.


Игорь Шевченко   (2004-11-12 15:40:00) [3]

Cosinus ©   (12.11.04 12:56) [3]

GetNextWindow ?


Cosinus   (2004-11-12 12:56:00) [4]

Хм... Возник еще один вопрос. Вот кусок хелпа по ChildWindowFromPoint - Windows maintains an internal list, containing the handles of the child windows associated with a parent window. The order of the handles in the list depends on the Z order of the child windows. If more than one child window contains the specified point, Windows returns the handle of the first window in the list that contains the point
А как узнать не только первый в списке, а все?


Cosinus   (2004-11-12 12:52:00) [5]

Мне подойдет в связке WindowFromPoint+ChildWindowFromPoint.
Спасибо.


easy   (2004-11-12 12:40:00) [6]

WindowFromPoint


Наверх

Титульная страница Поиск, карта сайта Написать письмо