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