1 write to _host
System.Windows.Forms (1)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
34
internal OleInterfaces(AxHost host) =>
_host
= host.OrThrowIfNull();
58 references to _host
System.Windows.Forms (58)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (58)
46
internal AxHost GetAxHost() =>
_host
;
57
object? nativeObject =
_host
.GetOcx();
93
_host
.GetParentContainer().EnumControls(
_host
, dwOleContF, dwWhich));
128
object? ambient =
_host
.GetAmbientProperty(dispId);
150
AxContainer.ExtenderProxy? proxy =
_host
.GetParentContainer().GetExtenderProxyForControl(
_host
);
223
Debug.Assert(!
_host
.GetAxState(s_siteProcessedInputKey), "Re-entering IOleControlSite.TranslateAccelerator!!!");
224
_host
.SetAxState(s_siteProcessedInputKey, true);
229
bool f =
_host
.PreProcessMessage(ref msg);
234
_host
.SetAxState(s_siteProcessedInputKey, false);
242
if (
_host
.CanShowPropertyPages())
244
_host
.ShowPropertyPages();
272
*ppContainer = ComHelpers.GetComPointer<IOleContainer>(
_host
.GetParentContainer());
278
if (
_host
.GetAxState(s_fOwnWindow))
284
if (
_host
.GetAxState(s_fFakingWindow))
289
_host
.DestroyFakeWindow();
293
_host
.TransitionDownTo(OC_LOADED);
294
_host
.TransitionUpTo(OC_INPLACE);
297
if (
_host
.GetOcState() < OC_INPLACE)
303
using var inPlaceObject =
_host
.GetComScope<IOleInPlaceObject>();
306
if (
_host
.GetHandleNoCreate() != hwnd)
308
_host
.DetachWindow();
311
_host
.AttachWindow(hwnd);
342
*phwnd =
_host
.ParentInternal?.HWND ?? HWND.Null;
352
_host
.SetAxState(s_ownDisposing, false);
353
_host
.SetAxState(s_rejectSelection, false);
354
_host
.SetOcState(OC_INPLACE);
360
_host
.SetOcState(OC_UIACTIVE);
361
_host
.GetParentContainer().OnUIActivate(
_host
);
389
*ppFrame = ComHelpers.GetComPointer<IOleInPlaceFrame>(
_host
.GetParentContainer());
390
*lprcPosRect =
_host
.Bounds;
399
lpFrameInfo->hwndFrame =
_host
.ParentInternal?.HWND ?? HWND.Null;
409
_host
.GetParentContainer().OnUIDeactivate(
_host
);
410
if (
_host
.GetOcState() > OC_INPLACE)
412
_host
.SetOcState(OC_INPLACE);
420
if (
_host
.GetOcState() == OC_UIACTIVE)
425
_host
.GetParentContainer().OnInPlaceDeactivate(
_host
);
426
_host
.DetachWindow();
427
_host
.SetOcState(OC_RUNNING);
435
using var inPlaceObject =
_host
.GetComScope<IOleInPlaceObject>();
450
if (s_windowsMediaPlayer_Clsid.Equals(
_host
._clsid))
452
useRect =
_host
.GetAxState(s_handlePosRectChanged);
458
using var inPlaceObject =
_host
.GetComScope<IOleInPlaceObject>();
460
_host
.MakeDirty();
472
if (
_host
.NoComponentChangeEvents != 0)
477
_host
.NoComponentChangeEvents++;
484
prop =
_host
.GetPropertyDescriptorFromDispid(dispid);
487
prop.OnValueChanged(
_host
);
497
PropertyDescriptorCollection props = ((ICustomTypeDescriptor)
_host
).GetProperties();
508
if (
_host
.Site.TryGetService(out IComponentChangeService? changeService))
512
changeService.OnComponentChanging(
_host
, prop);
520
changeService.OnComponentChanged(
_host
, prop, oldValue: null, prop?.GetValue(
_host
));
530
_host
.NoComponentChangeEvents--;