Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "WinAPI";
Текущий архив: 2005.03.20;
Скачать: [xml.tar.bz2];

Вниз

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 вся ветка

Форум: "WinAPI";
Текущий архив: 2005.03.20;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.46 MB
Время: 0.042 c
1-1109939651
РшЕус
2005-03-04 15:34
2005.03.20
запустить программу из приложения, созданного в Delphi


1-1109871255
Checist [root]
2005-03-03 20:34
2005.03.20
Нужен компонент TrayIcon


3-1108627893
Innuendo
2005-02-17 11:11
2005.03.20
Тип данных параметра запроса для char(firebird) и varchar2(ora9)


14-1109618597
Pietro
2005-02-28 22:23
2005.03.20
как послать Mail?


6-1101368472
Жуков
2004-11-25 10:41
2005.03.20
Сообщения по локальной сети





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский