1 write to _host
System.Windows.Forms (1)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
35
internal OleInterfaces(AxHost host) =>
_host
= host.OrThrowIfNull();
58 references to _host
System.Windows.Forms (58)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (58)
47
internal AxHost GetAxHost() =>
_host
;
58
object? nativeObject =
_host
.GetOcx();
94
_host
.GetParentContainer().EnumControls(
_host
, dwOleContF, dwWhich));
129
object? ambient =
_host
.GetAmbientProperty(dispId);
151
AxContainer.ExtenderProxy? proxy =
_host
.GetParentContainer().GetExtenderProxyForControl(
_host
);
224
Debug.Assert(!
_host
.GetAxState(s_siteProcessedInputKey), "Re-entering IOleControlSite.TranslateAccelerator!!!");
225
_host
.SetAxState(s_siteProcessedInputKey, true);
230
bool f =
_host
.PreProcessMessage(ref msg);
235
_host
.SetAxState(s_siteProcessedInputKey, false);
243
if (
_host
.CanShowPropertyPages())
245
_host
.ShowPropertyPages();
273
*ppContainer = ComHelpers.GetComPointer<IOleContainer>(
_host
.GetParentContainer());
279
if (
_host
.GetAxState(s_fOwnWindow))
285
if (
_host
.GetAxState(s_fFakingWindow))
290
_host
.DestroyFakeWindow();
294
_host
.TransitionDownTo(OC_LOADED);
295
_host
.TransitionUpTo(OC_INPLACE);
298
if (
_host
.GetOcState() < OC_INPLACE)
304
using var inPlaceObject =
_host
.GetComScope<IOleInPlaceObject>();
307
if (
_host
.GetHandleNoCreate() != hwnd)
309
_host
.DetachWindow();
312
_host
.AttachWindow(hwnd);
343
*phwnd =
_host
.ParentInternal?.HWND ?? HWND.Null;
353
_host
.SetAxState(s_ownDisposing, false);
354
_host
.SetAxState(s_rejectSelection, false);
355
_host
.SetOcState(OC_INPLACE);
361
_host
.SetOcState(OC_UIACTIVE);
362
_host
.GetParentContainer().OnUIActivate(
_host
);
390
*ppFrame = ComHelpers.GetComPointer<IOleInPlaceFrame>(
_host
.GetParentContainer());
391
*lprcPosRect =
_host
.Bounds;
400
lpFrameInfo->hwndFrame =
_host
.ParentInternal?.HWND ?? HWND.Null;
410
_host
.GetParentContainer().OnUIDeactivate(
_host
);
411
if (
_host
.GetOcState() > OC_INPLACE)
413
_host
.SetOcState(OC_INPLACE);
421
if (
_host
.GetOcState() == OC_UIACTIVE)
426
_host
.GetParentContainer().OnInPlaceDeactivate(
_host
);
427
_host
.DetachWindow();
428
_host
.SetOcState(OC_RUNNING);
436
using var inPlaceObject =
_host
.GetComScope<IOleInPlaceObject>();
451
if (s_windowsMediaPlayer_Clsid.Equals(
_host
._clsid))
453
useRect =
_host
.GetAxState(s_handlePosRectChanged);
459
using var inPlaceObject =
_host
.GetComScope<IOleInPlaceObject>();
461
_host
.MakeDirty();
473
if (
_host
.NoComponentChangeEvents != 0)
478
_host
.NoComponentChangeEvents++;
485
prop =
_host
.GetPropertyDescriptorFromDispid(dispid);
488
prop.OnValueChanged(
_host
);
498
PropertyDescriptorCollection props = ((ICustomTypeDescriptor)
_host
).GetProperties();
509
if (
_host
.Site.TryGetService(out IComponentChangeService? changeService))
513
changeService.OnComponentChanging(
_host
, prop);
521
changeService.OnComponentChanged(
_host
, prop, oldValue: null, prop?.GetValue(
_host
));
531
_host
.NoComponentChangeEvents--;