6 references to GetAncestor
System.Windows.Forms (4)
System\Windows\Forms\Application.ThreadContext.cs (1)
972
HWND hwndRoot = PInvoke.
GetAncestor
(msg.hwnd, GET_ANCESTOR_FLAGS.GA_ROOT);
System\Windows\Forms\Control.cs (1)
5241
hwnd = PInvoke.
GetAncestor
(hwnd, GET_ANCESTOR_FLAGS.GA_PARENT);
System\Windows\Forms\Control.Ime.cs (1)
278
focusHandle = PInvoke.
GetAncestor
(focusHandle, GET_ANCESTOR_FLAGS.GA_ROOT);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4435
HWND otherHwndRoot = PInvoke.
GetAncestor
(otherHwnd, GET_ANCESTOR_FLAGS.GA_ROOT);
System.Windows.Forms.Primitives (2)
Windows\Win32\PInvoke.GetAncestor.cs (2)
8
/// <inheritdoc cref="
GetAncestor
(HWND, GET_ANCESTOR_FLAGS)"/>
11
HWND result =
GetAncestor
(hwnd.Handle, flags);