43 references to Host
System.Windows.Forms (43)
System\Windows\Forms\Controls\WebBrowser\WebBrowser.WebBrowserSite.cs (4)
32
WebBrowser wb = (WebBrowser)
Host
;
66
WebBrowser wb = (WebBrowser)
Host
;
148
WebBrowser wb = (WebBrowser)
Host
;
162
WebBrowser wb = (WebBrowser)
Host
;
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (1)
114
control = webBrowserSiteBase.
Host
;
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (38)
140
Debug.Assert(!
Host
.GetAXHostState(WebBrowserHelper.s_siteProcessedInputKey), "Re-entering IOleControlSite.TranslateAccelerator!!!");
141
Host
.SetAXHostState(WebBrowserHelper.s_siteProcessedInputKey, true);
146
bool f =
Host
.PreProcessControlMessage(ref msg) == PreProcessControlState.MessageProcessed;
151
Host
.SetAXHostState(WebBrowserHelper.s_siteProcessedInputKey, false);
180
*ppContainer = ComHelpers.GetComPointer<IOleContainer>(
Host
.GetParentContainer());
186
if (
Host
.ActiveXState >= WebBrowserHelper.AXState.InPlaceActive)
189
if (
Host
.AXInPlaceObject!.GetWindow(&hwnd).Succeeded)
191
if (
Host
.GetHandleNoCreate() != hwnd)
195
Host
.AttachWindow(hwnd);
196
RECT posRect =
Host
.Bounds;
201
else if (
Host
.AXInPlaceObject is IOleInPlaceObjectWindowless.Interface)
222
*phwnd = PInvoke.GetParent(
Host
);
232
Host
.ActiveXState = WebBrowserHelper.AXState.InPlaceActive;
233
RECT posRect =
Host
.Bounds;
240
Host
.ActiveXState = WebBrowserHelper.AXState.UIActive;
241
Host
.GetParentContainer().OnUIActivate(
Host
);
262
*ppFrame = ComHelpers.GetComPointer<IOleInPlaceFrame>(
Host
.GetParentContainer());
264
*lprcPosRect =
Host
.Bounds;
272
lpFrameInfo->hwndFrame =
Host
.ParentInternal is { } parent ? parent.HWND : HWND.Null;
282
Host
.GetParentContainer().OnUIDeactivate(
Host
);
283
if (
Host
.ActiveXState > WebBrowserHelper.AXState.InPlaceActive)
285
Host
.ActiveXState = WebBrowserHelper.AXState.InPlaceActive;
293
if (
Host
.ActiveXState == WebBrowserHelper.AXState.UIActive)
298
Host
.GetParentContainer().OnInPlaceDeactivate(
Host
);
299
Host
.ActiveXState = WebBrowserHelper.AXState.Running;
305
HRESULT IOleInPlaceSite.Interface.DeactivateAndUndo() =>
Host
.AXInPlaceObject!.UIDeactivate();
331
if (
Host
.NoComponentChangeEvents != 0)
336
Host
.NoComponentChangeEvents++;
348
Host
.NoComponentChangeEvents--;
358
if (
Host
.Site.TryGetService(out IComponentChangeService? changeService))
362
changeService.OnComponentChanging(
Host
);
363
changeService.OnComponentChanged(
Host
);
379
object? nativeObject =
Host
._activeXInstance;
417
Host
.AXInPlaceObject!.SetObjectRects(&posRect, &clipRect);
418
Host
.MakeDirty();