Вниз
Скачать: 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
14-1102590544
DiamondShark
2004-12-09 14:09
2004.12.26
Радикальное решение.


3-1101279475
`
2004-11-24 09:57
2004.12.26
Связи между таблицами


1-1102586342
Алихан
2004-12-09 12:59
2004.12.26
DLL


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


1-1102502798
BRemB
2004-12-08 13:46
2004.12.26
TCustomDockForm




   Наверх