12 references to GetAncestor
System.Windows.Forms (12)
System\Windows\Forms\Controls\Menus\MenuStrip.cs (1)
240
HWND ancestor = PInvoke.
GetAncestor
(this, GET_ANCESTOR_FLAGS.GA_ROOT);
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
163
HWND rootHwnd = PInvoke.
GetAncestor
(this, GET_ANCESTOR_FLAGS.GA_ROOT);
569
HWND rootHwnd = PInvoke.
GetAncestor
(this, GET_ANCESTOR_FLAGS.GA_ROOT);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
4434
HWND thisHwndRoot = PInvoke.
GetAncestor
(this, GET_ANCESTOR_FLAGS.GA_ROOT);
4613
HWND rootHwnd = PInvoke.
GetAncestor
(this, GET_ANCESTOR_FLAGS.GA_ROOT);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.RestoreFocusMessageFilter.cs (1)
39
HWND rootHwnd = PInvoke.
GetAncestor
(_ownerToolStrip, GET_ANCESTOR_FLAGS.GA_ROOT);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (5)
261
=> PInvoke.
GetAncestor
(control1, GET_ANCESTOR_FLAGS.GA_ROOT) == PInvoke.
GetAncestor
(control2, GET_ANCESTOR_FLAGS.GA_ROOT);
831
HWND rootWindowOfToolStrip = PInvoke.
GetAncestor
(topMostToolStrip, GET_ANCESTOR_FLAGS.GA_ROOT);
832
HWND rootWindowOfControl = PInvoke.
GetAncestor
(activeControl, GET_ANCESTOR_FLAGS.GA_ROOT);
932
HWND topmostParentOfMenu = PInvoke.
GetAncestor
(menuStripToActivate, GET_ANCESTOR_FLAGS.GA_ROOT);
System\Windows\Forms\ToolTip\ToolTip.cs (1)
309
HWND rootHwnd = PInvoke.
GetAncestor
(control, GET_ANCESTOR_FLAGS.GA_ROOT);