Главная страница
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.019 c
2-1200054973
9899100
2008-01-11 15:36
2008.02.03
MDIchild отобразить модально


2-1200037693
andreoman
2008-01-11 10:48
2008.02.03
путь к папке файла


2-1199828877
Артем
2008-01-09 00:47
2008.02.03
Edit.Text преобразовать в WideString


2-1199646349
ЗВаська
2008-01-06 22:05
2008.02.03
Интерфейс + with


15-1198725040
Slider007
2007-12-27 06:10
2008.02.03
С днем рождения ! 27 декабря 2007 четверг