Как получить для формы WinForms форму, лежащую под ней? (C#)
От: Аноним  
Дата: 26.05.11 09:38
Оценка:
Доброго времени суток, коллеги!
Задача такая — мне надо как-то получить форму или хотя бы хэндл формы, лежащей под самой верхней текущей формой (т. е. я так понимаю, предыдущую в Z-порядке или как это называется). Можно ли это как-то сделать через WinForms, не прибегая к WinAPI? Знаю, что есть

GetWindow Function

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.
GW_HWNDPREV
The retrieved handle identifies the window above the specified window in the Z order. If the specified window is a topmost window, the handle identifies the topmost window above the specified window. If the specified window is a top-level window, the handle identifies the top-level window above the specified window. If the specified window is a child window, the handle identifies the sibling window above the specified window.

 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.