Вниз
Скачать: 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.036 c
10-1074095414
Kavi
2004-01-14 18:50
2004.12.26
COM технология


6-1097439529
Alex_G
2004-10-11 00:18
2004.12.26
Запрос к Web-cерверу системы WebMoney Transfer


3-1101636673
Guma
2004-11-28 13:11
2004.12.26
Кодировка в MS SQL Server.


4-1100009768
Anonimus
2004-11-09 17:16
2004.12.26
Миниатюра как для файлов Фотошопа


3-1101968688
speed
2004-12-02 09:24
2004.12.26
информационно-поисковая система.




   Наверх