2 writes to _host
System.Windows.Forms (2)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (2)
34
internal OleInterfaces(AxHost host) =>
_host
= host.OrThrowIfNull();
46
_host
= null!;
58 references to _host
System.Windows.Forms (58)
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (58)
49
internal AxHost GetAxHost() =>
_host
;
60
object? nativeObject =
_host
.GetOcx();
96
_host
.GetParentContainer().EnumControls(
_host
, dwOleContF, dwWhich));
131
object? ambient =
_host
.GetAmbientProperty(dispId);
153
AxContainer.ExtenderProxy? proxy =
_host
.GetParentContainer().GetExtenderProxyForControl(
_host
);
226
Debug.Assert(!
_host
.GetAxState(s_siteProcessedInputKey), "Re-entering IOleControlSite.TranslateAccelerator!!!");
227
_host
.SetAxState(s_siteProcessedInputKey, true);
232
bool f =
_host
.PreProcessMessage(ref msg);
237
_host
.SetAxState(s_siteProcessedInputKey, false);
245
if (
_host
.CanShowPropertyPages())
247
_host
.ShowPropertyPages();
275
*ppContainer = ComHelpers.GetComPointer<IOleContainer>(
_host
.GetParentContainer());
281
if (
_host
.GetAxState(s_fOwnWindow))
287
if (
_host
.GetAxState(s_fFakingWindow))
292
_host
.DestroyFakeWindow();
296
_host
.TransitionDownTo(OC_LOADED);
297
_host
.TransitionUpTo(OC_INPLACE);
300
if (
_host
.GetOcState() < OC_INPLACE)
306
using var inPlaceObject =
_host
.GetComScope<IOleInPlaceObject>();
309
if (
_host
.GetHandleNoCreate() != hwnd)
311
_host
.DetachWindow();
314
_host
.AttachWindow(hwnd);
345
*phwnd =
_host
.ParentInternal?.HWND ?? HWND.Null;
355
_host
.SetAxState(s_ownDisposing, false);
356
_host
.SetAxState(s_rejectSelection, false);
357
_host
.SetOcState(OC_INPLACE);
363
_host
.SetOcState(OC_UIACTIVE);
364
_host
.GetParentContainer().OnUIActivate(
_host
);
392
*ppFrame = ComHelpers.GetComPointer<IOleInPlaceFrame>(
_host
.GetParentContainer());
393
*lprcPosRect =
_host
.Bounds;
402
lpFrameInfo->hwndFrame =
_host
.ParentInternal?.HWND ?? HWND.Null;
412
_host
.GetParentContainer().OnUIDeactivate(
_host
);
413
if (
_host
.GetOcState() > OC_INPLACE)
415
_host
.SetOcState(OC_INPLACE);
423
if (
_host
.GetOcState() == OC_UIACTIVE)
428
_host
.GetParentContainer().OnInPlaceDeactivate(
_host
);
429
_host
.DetachWindow();
430
_host
.SetOcState(OC_RUNNING);
438
using var inPlaceObject =
_host
.GetComScope<IOleInPlaceObject>();
453
if (s_windowsMediaPlayer_Clsid.Equals(
_host
._clsid))
455
useRect =
_host
.GetAxState(s_handlePosRectChanged);
461
using var inPlaceObject =
_host
.GetComScope<IOleInPlaceObject>();
463
_host
.MakeDirty();
475
if (
_host
.NoComponentChangeEvents != 0)
480
_host
.NoComponentChangeEvents++;
487
prop =
_host
.GetPropertyDescriptorFromDispid(dispid);
490
prop.OnValueChanged(
_host
);
500
PropertyDescriptorCollection props = ((ICustomTypeDescriptor)
_host
).GetProperties();
511
if (
_host
.Site.TryGetService(out IComponentChangeService? changeService))
515
changeService.OnComponentChanging(
_host
, prop);
523
changeService.OnComponentChanged(
_host
, prop, oldValue: null, prop?.GetValue(
_host
));
533
_host
.NoComponentChangeEvents--;