1 write to host
System.Windows.Forms (1)
winforms\Managed\System\WinForms\AxHost.cs (1)
3894this.host = host;
74 references to host
System.Windows.Forms (74)
winforms\Managed\System\WinForms\AxHost.cs (74)
3917return host; 3928Object nativeObject = host.GetOcx(); 3980ppenum = host.GetParentContainer().EnumControls(host, dwOleContF, dwWhich); 4041object ambient = host.GetAmbientProperty(dispid); 4068Debug.WriteLineIf(AxHTraceSwitch.TraceVerbose, "in GetExtendedControl " + host.ToString()); 4069ppDisp = host.GetParentContainer().GetProxyForControl(host); 4083pPtfContainer.x = (float) host.HM2Pix(pPtlHimetric.x, logPixelsX); 4084pPtfContainer.y = (float) host.HM2Pix(pPtlHimetric.y, logPixelsY); 4087pPtfContainer.x = (float) host.HM2Pix(pPtlHimetric.x, logPixelsX); 4088pPtfContainer.y = (float) host.HM2Pix(pPtlHimetric.y, logPixelsY); 4097pPtlHimetric.x = host.Pix2HM((int)pPtfContainer.x, logPixelsX); 4098pPtlHimetric.y = host.Pix2HM((int)pPtfContainer.y, logPixelsY); 4101pPtlHimetric.x = host.Pix2HM((int)pPtfContainer.x, logPixelsX); 4102pPtlHimetric.y = host.Pix2HM((int)pPtfContainer.y, logPixelsY); 4118Debug.Assert(!host.GetAxState(AxHost.siteProcessedInputKey), "Re-entering UnsafeNativeMethods.IOleControlSite.TranslateAccelerator!!!"); 4119host.SetAxState(AxHost.siteProcessedInputKey, true); 4128bool f = ((Control)host).PreProcessMessage(ref msg); 4132host.SetAxState(AxHost.siteProcessedInputKey, false); 4142if (host.CanShowPropertyPages()) { 4143host.ShowPropertyPages(); 4164container = host.GetParentContainer(); 4171if (host.GetAxState(AxHost.fOwnWindow)) { 4175if (host.GetAxState(AxHost.fFakingWindow)) { 4179host.DestroyFakeWindow(); 4185host.TransitionDownTo(OC_LOADED); 4186host.TransitionUpTo(OC_INPLACE); 4188if (host.GetOcState() < OC_INPLACE) 4192if (NativeMethods.Succeeded(host.GetInPlaceObject().GetWindow(out hwnd))) { 4193if (host.GetHandleNoCreate() != hwnd) { 4194host.DetachWindow(); 4196host.AttachWindow(hwnd); 4200else if (host.GetInPlaceObject() is UnsafeNativeMethods.IOleInPlaceObjectWindowless) { 4229Control parent = host.ParentInternal; 4253host.SetAxState(AxHost.ownDisposing, false); 4254host.SetAxState(AxHost.rejectSelection, false); 4255host.SetOcState(OC_INPLACE); 4260Debug.WriteLineIf(AxHTraceSwitch.TraceVerbose, "in OnUIActivate for " + host.ToString()); 4261host.SetOcState(OC_UIACTIVE); 4262host.GetParentContainer().OnUIActivate(host); 4269ppFrame = host.GetParentContainer(); 4270FillInRect(lprcPosRect, host.Bounds); 4271host.GetClipRect(lprcClipRect); 4277lpFrameInfo.hwndFrame = host.ParentInternal.Handle; 4294Debug.WriteLineIf(AxHTraceSwitch.TraceVerbose, "in OnUIDeactivate for " + host.ToString()); 4295host.GetParentContainer().OnUIDeactivate(host); 4296if (host.GetOcState() > OC_INPLACE) { 4297host.SetOcState(OC_INPLACE); 4304if (host.GetOcState() == OC_UIACTIVE) { 4308host.GetParentContainer().OnInPlaceDeactivate(host); 4309host.DetachWindow(); 4310host.SetOcState(OC_RUNNING); 4320Debug.WriteLineIf(AxHTraceSwitch.TraceVerbose, "in DeactivateAndUndo for "+host.ToString()); 4321return host.GetInPlaceObject().UIDeactivate(); 4332if (AxHost.windowsMediaPlayer_Clsid.Equals(host.clsid)) 4333useRect = host.GetAxState(AxHost.handlePosRectChanged); 4337host.GetInPlaceObject().SetObjectRects(lprcPosRect, host.GetClipRect(new NativeMethods.COMRECT())); 4338host.MakeDirty(); 4352if (host.NoComponentChangeEvents != 0) 4355host.NoComponentChangeEvents++; 4362prop = host.GetPropertyDescriptorFromDispid(dispid); 4364prop.OnValueChanged(this.host); 4373PropertyDescriptorCollection props = ((ICustomTypeDescriptor)host).GetProperties(); 4382ISite site = host.Site; 4388changeService.OnComponentChanging(host, prop); 4399changeService.OnComponentChanged(host, prop, null, ((prop != null) ? prop.GetValue(host) : null)); 4408host.NoComponentChangeEvents--; 4413Debug.WriteLineIf(AxHTraceSwitch.TraceVerbose, "in OnRequestEdit for "+host.ToString());