Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2005.03.20;
Скачать: CL | DM;

Вниз

Top,left   Найти похожие ветки 

 
FFF   (2005-02-02 09:37) [0]

Здравствуйте! Подскажите пожалуйста как зная Handle окна получить его Top и Left? (Как для формы Form1.top и  Form1.left)


 
Чапаев ©   (2005-02-02 09:47) [1]

GetWindowOrgEx().


 
Cosinus ©   (2005-02-02 09:48) [2]

Из справки WIN API в DELPHI...

An application can retrieve the coordinates of a window"s bounding rectangle by using the GetWindowRect function. GetWindowRect fills a RECT structure with the coordinates of the window"s upper left and lower right corners. The coordinates are relative to the upper left corner of the screen, even for a child window. The ScreenToClient or MapWindowPoints function maps the screen coordinates of a child window"s bounding rectangle to coordinates relative to the parent window"s client area.


 
Cosinus ©   (2005-02-02 09:50) [3]

Ой, соррри...

An application can retrieve the coordinates of a window"s bounding rectangle by using the GetWindowRect function. GetWindowRect fills a RECT structure with the coordinates of the window"s upper left and lower right corners. The coordinates are relative to the upper left corner of the screen, even for a child window. The ScreenToClient or MapWindowPoints function maps the screen coordinates of a child window"s bounding rectangle to coordinates relative to the parent window"s client area.CODE>


 
Cosinus ©   (2005-02-02 09:52) [4]


> Чапаев ©   (02.02.05 09:47) [1]

Хм... Не знал даже, спасибо.


 
FFF   (2005-02-02 09:57) [5]


> GetWindowRect

Спасибо! Это мне и нужно было! Только со справкой у меня не лады: в поиске пишу GetWindowOrgEx, а ее там нет.


 
Cosinus ©   (2005-02-02 10:39) [6]


> FFF   (02.02.05 09:57) [5]
Только со справкой у меня не лады: в поиске пишу GetWindowOrgEx, а ее там нет

Потому что не там смотришь. Надо не в Delphi Help лезть, а в Windows SDK (у меня в Delphi6 - это третья строчка в меню Help).


 
FFF   (2005-02-02 19:36) [7]


>  FFF   (02.02.05 09:57) [5]
> Только со справкой у меня не лады: в поиске пишу GetWindowOrgEx,
> а ее там нет
> Потому что не там смотришь. Надо не в Delphi Help лезть,
> а в Windows SDK (у меня в Delphi6 - это третья строчка в
> меню Help).

Спасибо! Буду знать!



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

Текущий архив: 2005.03.20;
Скачать: CL | DM;

Наверх




Память: 0.48 MB
Время: 0.048 c
14-1109784234
lokid7
2005-03-02 20:23
2005.03.20
IP в локальной сети и доступ по нему к инету


1-1110304064
vertal
2005-03-08 20:47
2005.03.20
Аналог DecimalSeparator для writeln


3-1108976389
BeginerEmpty
2005-02-21 11:59
2005.03.20
изменения значения IBX


3-1108531575
Laymer
2005-02-16 08:26
2005.03.20
Получить список таблиц


3-1109005439
Bogdan
2005-02-21 20:03
2005.03.20
Поиск записи по нескольким знакам