Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.47 MB
Время: 0.013 c
2-1199783361
Washington
2008-01-08 12:09
2008.02.03
Программа, не имеющая формы


4-1182958417
sergeii
2007-06-27 19:33
2008.02.03
как можно послать локальному активному пользователю сообщение


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


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


15-1198551896
Slider007
2007-12-25 06:04
2008.02.03
С днем рождения ! 25 декабря 2007 вторник




   Наверх