Главная страница
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.039 c
1-1110345768
КаПиБаРа
2005-03-09 08:22
2005.03.20
Обработка ошибок или как работает Except


14-1109596953
Рулон Обоев
2005-02-28 16:22
2005.03.20
сравнение в С


3-1108708207
Ольга
2005-02-18 09:30
2005.03.20
UPDATE с углубленным сравнением


6-1106216491
New User
2005-01-20 13:21
2005.03.20
Как раскодиравть коки


1-1110093945
Leeechhhh
2005-03-06 10:25
2005.03.20
как сделать чтоб мою прогу небыло видно таскбаре