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