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