Страница 1 из 1

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

Добавлено: 04 ноя 2004, 12:58
WERT
Здрасти.
Как найти контролы диалога. Например список их ID?
Спасибо.

Добавлено: 04 ноя 2004, 13:34
Kolinus
Полагаю что так
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.

Добавлено: 04 ноя 2004, 17:19
Acidy
см. в МСДН EnumChildWindows()