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