Вниз
Скачать: CL | DM;

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

 
Cosinus ©   (2004-11-12 12:37) [0]

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


 
easy ©   (2004-11-12 12:40) [1]

WindowFromPoint


 
Cosinus ©   (2004-11-12 12:52) [2]

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


 
Cosinus ©   (2004-11-12 12:56) [3]

Хм... Возник еще один вопрос. Вот кусок хелпа по 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
А как узнать не только первый в списке, а все?


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

Cosinus ©   (12.11.04 12:56) [3]

GetNextWindow ?


 
GuAV ©   (2004-11-12 20:25) [5]

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

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


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

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



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.46 MB
Время: 0.022 c
3-1101735933
Chery
2004-11-29 16:45
2004.12.26
Как узнать путь к БД: МуСКЛ, драйвер MyODBC-3.51.10.


1-1102717713
Bobby Digital
2004-12-11 01:28
2004.12.26
Memo


1-1102585765
Sphinx
2004-12-09 12:49
2004.12.26
Формы и процессы в dll


1-1102689339
Just3r
2004-12-10 17:35
2004.12.26
Компонент "богатый текст"


3-1101295409
VitaWED
2004-11-24 14:23
2004.12.26
Название столбца.




   Наверх