Главная страница
    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.036 c
1-1109923161
Oleg_
2005-03-04 10:59
2005.03.20
как правильно снять выделение с combobox?


14-1109497114
dr Tr0jan
2005-02-27 12:38
2005.03.20
Как настроить вывод в консоль, глюк с русской кодировкой


6-1105396413
klyonov
2005-01-11 01:33
2005.03.20
Интернет-радио


3-1108649874
DimonNew
2005-02-17 17:17
2005.03.20
Delphi2005 и ClientDataSet


14-1109669964
DelphiN!
2005-03-01 12:39
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
Английский Французский Немецкий Итальянский Португальский Русский Испанский