Top.Mail.Ru
Мастера DELPHI, Delphi programming community Титульная страница Поиск, карта сайта Написать письмо 
| Новости | Поиск | FAQ | Статьи | Книги | Новости VCL |
| Форумы ЧАТ | Орешник | KOL и MCK |
Форумы -» Основная («Начинающим»)/ Базы / WinAPI / Компоненты / Сети / Media / Игры / Corba и COM / KOL / FreePascal / .Net / Прочее / RSDN.ORG

« предыдущая ветвь | форум | следующая ветвь »

Top,left [D7, WinXP]


FFF ©   (2005-02-02 09:37:00) 

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


FFF   (2005-02-02 19:36:00) [1]


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

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


Cosinus   (2005-02-02 10:39:00) [2]


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

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


FFF   (2005-02-02 09:57:00) [3]


> GetWindowRect

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


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


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

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


Cosinus   (2005-02-02 09:50:00) [5]

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

An application can retrieve the coordinates of a window's bounding rectangle by using the GetWindowRectfunction. GetWindowRectfills 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 ScreenToClientor MapWindowPointsfunction 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:48:00) [6]

Из справки 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.


Чапаев   (2005-02-02 09:47:00) [7]

GetWindowOrgEx().


Наверх

Титульная страница Поиск, карта сайта Написать письмо