Как найти все контролы диалога?

Модераторы: Hawk, Romeo, Absurd, DeeJayC, WinMain

Ответить
WERT
Сообщения: 5
Зарегистрирован: 22 окт 2004, 16:29

04 ноя 2004, 12:58

Здрасти.
Как найти контролы диалога. Например список их ID?
Спасибо.
Kolinus
Сообщения: 449
Зарегистрирован: 23 авг 2004, 14:02
Откуда: Минск

04 ноя 2004, 13:34

Полагаю что так
HWND GetWindow(
HWND hWnd, // handle to original window
UINT uCmd // relationship
);
uCmd
[in] Specifies the relationship between the specified window and the window whose handle is to be retrieved. This parameter can be one of the following values. Value Meaning
GW_CHILD The retrieved handle identifies the child window at the top of the Z order, if the specified window is a parent window; otherwise, the retrieved handle is NULL. The function examines only child windows of the specified window. It does not examine descendant windows.

GW_HWNDNEXT The retrieved handle identifies the window below the specified window in the Z order. If the specified window is a topmost window, the handle identifies the topmost window below the specified window. If the specified window is a top-level window, the handle identifies the top-level window below the specified window. If the specified window is a child window, the handle identifies the sibling window below the specified window.
В SAD - все в SAD.
Acidy
Сообщения: 23
Зарегистрирован: 19 окт 2004, 10:40
Откуда: хз
Контактная информация:

04 ноя 2004, 17:19

см. в МСДН EnumChildWindows()
Удачи... =)
Ответить