Вниз
Скачать: 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.028 c
14-1102431862
savva
2004-12-07 18:04
2004.12.26
OFFTOPIC: Пути Суприма неисповедимы:)


14-1102246735
ninja
2004-12-05 14:38
2004.12.26
бесплатный хостинг с ASP


14-1102016407
av3nger
2004-12-02 22:40
2004.12.26
Статьи


1-1103005195
Ailk
2004-12-14 09:19
2004.12.26
Помогите с PopupMenu!


8-1096355911
X-Disa
2004-09-28 11:18
2004.12.26
Печать изображений




   Наверх