Страница 2 из 2
Re: как изменить текст в Edit в чужом окне?
Добавлено: 25 фев 2007, 17:31
BopoH
за второе спасибо, а про первое findwindowex находит хэндл первого LabeledEditа, а
мне нужен хандл второго, как замутить?
Re: как изменить текст в Edit в чужом окне?
Добавлено: 27 фев 2007, 13:28
Blood_Magic
BopoH писал(а):за второе спасибо, а про первое findwindowex находит хэндл первого LabeledEditа, а
мне нужен хандл второго, как замутить?
GetNextWindow(<хэндл первого LabeledEditа>,GW_HWNDNEXT)
Re: как изменить текст в Edit в чужом окне?
Добавлено: 27 фев 2007, 15:30
somewhere
" писал(а):GetNextWindow(<хэндл первого LabeledEditа>,GW_HWNDNEXT)
А по-моему просто
причем hwnd должон быть перентом искомых контролов, но я точно не помню
Re: как изменить текст в Edit в чужом окне?
Добавлено: 27 фев 2007, 16:26
Blood_Magic
Разницы в данном случаи нет. Я б сказал что контекстно больше подходит 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.
Re: как изменить текст в Edit в чужом окне?
Добавлено: 27 фев 2007, 23:06
BopoH
Всем спасибо, тему можно закрывать.