Главная страница
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.051 c
3-1108715065
Prohodil Mimo
2005-02-18 11:24
2005.03.20
Как в IB6 удалить FOREIGN KEY ?


14-1109341596
pavel_guzhanov
2005-02-25 17:26
2005.03.20
Книги на английском


4-1107341470
alpet
2005-02-02 13:51
2005.03.20
Быстрое снятие задачи.


14-1109230163
DelphiN!
2005-02-24 10:29
2005.03.20
Надежность сервера баз данных FireBird 1.5


4-1107454738
Artur
2005-02-03 21:18
2005.03.20
Может ли ехе...