за второе спасибо, а про первое findwindowex находит хэндл первого LabeledEditа, а
мне нужен хандл второго, как замутить?
как изменить текст в Edit в чужом окне?
Модераторы: Duncon, Naeel Maqsudov, Игорь Акопян, Хыиуду
-
- Сообщения: 273
- Зарегистрирован: 30 июн 2005, 14:53
GetNextWindow(<хэндл первого LabeledEditа>,GW_HWNDNEXT)BopoH писал(а):за второе спасибо, а про первое findwindowex находит хэндл первого LabeledEditа, а
мне нужен хандл второго, как замутить?
- Чем юзер похож на обезьяну?
- Он жмет на все, что жмется, дергает все, что дергается и крутит все, что крутится.
- Чем юзер отличается от обезьяны?
- У обезьяны хватает ума не воспроизводить ту последовательность, которая приводит к краху системы.
- Он жмет на все, что жмется, дергает все, что дергается и крутит все, что крутится.
- Чем юзер отличается от обезьяны?
- У обезьяны хватает ума не воспроизводить ту последовательность, которая приводит к краху системы.
А по-моему просто" писал(а):GetNextWindow(<хэндл первого LabeledEditа>,GW_HWNDNEXT)
Код: Выделить всё
h := GetWindow(hwnd, GW_HWNDNEXT);
It's a long way to the top if you wanna rock'n'roll
-
- Сообщения: 273
- Зарегистрирован: 30 июн 2005, 14:53
Разницы в данном случаи нет. Я б сказал что контекстно больше подходит GetNextWindow. Обратимся к справке:
The GetNextWindow function retrieves the handle of the next or previous window in the Z order. The next window is below the specified window; the previous window is above. If the specified window is a topmost window, the function retrieves the handle of the next (or previous) topmost window. If the specified window is a top-level window, the function retrieves the handle of the next (or previous) top-level window. If the specified window is a a child window, the function searches for a handle of the next (or previous) child window.
The GetWindow function retrieves the handle of a window that has the specified relationship (Z order or owner) to the specified window.
The GetNextWindow function retrieves the handle of the next or previous window in the Z order. The next window is below the specified window; the previous window is above. If the specified window is a topmost window, the function retrieves the handle of the next (or previous) topmost window. If the specified window is a top-level window, the function retrieves the handle of the next (or previous) top-level window. If the specified window is a a child window, the function searches for a handle of the next (or previous) child window.
The GetWindow function retrieves the handle of a window that has the specified relationship (Z order or owner) to the specified window.
- Чем юзер похож на обезьяну?
- Он жмет на все, что жмется, дергает все, что дергается и крутит все, что крутится.
- Чем юзер отличается от обезьяны?
- У обезьяны хватает ума не воспроизводить ту последовательность, которая приводит к краху системы.
- Он жмет на все, что жмется, дергает все, что дергается и крутит все, что крутится.
- Чем юзер отличается от обезьяны?
- У обезьяны хватает ума не воспроизводить ту последовательность, которая приводит к краху системы.
Всем спасибо, тему можно закрывать.