Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2008.02.03;
Скачать: CL | DM;

Вниз

получения род окна зная hwnd дочернего ??   Найти похожие ветки 

 
terc   (2007-10-26 20:48) [0]

я получаю дочерние окно а надо получить заголовк его родительского окна есть несколько известных функций но почемута не получается организовать их работу прошу подсказать пример


 
terc   (2007-10-26 20:51) [1]

и ещё ктонебудь знает как узнать топ и лефт компонента относительна экрана ???

зарание благодарен


 
homm ©   (2007-10-26 21:28) [2]

> [0] terc   (26.10.07 20:48)

hWnd := GetWindow(Children.Handle, GW_OWNER);


> и ещё ктонебудь знает как узнать топ и лефт компонента относительна
> экрана ???

GetWindowRect(Window.Handle, YouRect);


 
terc   (2007-10-26 21:49) [3]

Homm рулит по жизни помогает ему вероятно нечего делать


 
homm ©   (2007-10-26 21:53) [4]

Вот она благодарность. Поможешь человеку, он обосрет и еше ник неправильно напишет :(


 
terc   (2007-10-26 22:34) [5]

homm

это такая форма благодраности


 
Ins ©   (2007-10-27 01:06) [6]


> hWnd := GetWindow(Children.Handle, GW_OWNER);

А не GetParent? ;-)


 
DVM ©   (2007-10-27 11:26) [7]


> Вот она благодарность. Поможешь человеку, он обосрет и еше
> ник неправильно напишет :(

Так где ты помог? Только в заблуждение ввел. Родительское окно и владелец разные вещи.


 
homm ©   (2007-10-27 12:00) [8]

> [7] DVM ©   (27.10.07 11:26)
> Родительское окно и владелец разные вещи.

Хм. А что такое владелец в териминологии ВинАпи? Первый раз с тамим сталкиваюсь.


 
DVM ©   (2007-10-27 13:10) [9]


> А что такое владелец в териминологии ВинАпи?

Это из MSDN раздел Window Features

Owned Windows
An overlapped or pop-up window can be owned by another overlapped or pop-up window. Being owned places several constraints on a window.

An owned window is always above its owner in the z-order.
The system automatically destroys an owned window when its owner is destroyed.
An owned window is hidden when its owner is minimized.
Only an overlapped or pop-up window can be an owner window; a child window cannot be an owner window. An application creates an owned window by specifying the owner"s window handle as the hwndParent parameter of CreateWindowEx when it creates a window with the WS_OVERLAPPED or WS_POPUP style. The hwndParent parameter must identify an overlapped or pop-up window. If hwndParent identifies a child window, the system assigns ownership to the top-level parent window of the child window. After creating an owned window, an application cannot transfer ownership of the window to another window.

Dialog boxes and message boxes are owned windows by default. An application specifies the owner window when calling a function that creates a dialog box or message box.

An application can use the GetWindow function with the GW_OWNER flag to retrieve a handle to a window"s owner.



Страницы: 1 вся ветка

Текущий архив: 2008.02.03;
Скачать: CL | DM;

Наверх




Память: 0.48 MB
Время: 0.022 c
2-1199450070
Stas
2008-01-04 15:34
2008.02.03
Вставка результата запроса из DBF в MSSQL


15-1198852897
boriskb
2007-12-28 17:41
2008.02.03
Hello, World


3-1190862009
Arkadiy
2007-09-27 07:00
2008.02.03
строковое поле


15-1197962344
Loginov Dmitry
2007-12-18 10:19
2008.02.03
ProgressViewer


2-1199479311
MMQ
2008-01-04 23:41
2008.02.03
Объекты