1 write to _control
System.Windows.Forms (1)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
153
_control
= control;
61 references to _control
System.Windows.Forms (61)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (61)
354
Control target =
_control
;
357
if (hwnd !=
_control
.HWND && lpmsg->IsMouseMessage())
363
PInvokeCore.MapWindowPoints(hwndMap,
_control
, ref pt);
446
if (!
_control
.IsHandleCreated)
448
_control
.CreateHandle();
465
PInvoke.SetWindowExtEx(hdcDraw,
_control
.Width,
_control
.Height, (SIZE*)&sWindowExt);
476
PInvokeCore.SendMessage(
_control
, PInvokeCore.WM_PRINT, (WPARAM)hdcDraw, (LPARAM)flags);
480
_control
.PrintToMetaFile(hdcDraw, flags);
617
GetMnemonicList(
_control
, mnemonicList);
675
PInvoke.DestroyAcceleratorTable(new HandleRef<HACCEL>(
_control
, _accelTable));
699
Size size =
_control
.Size;
735
string streamName =
_control
.GetType().FullName!;
760
*phwnd = (HWND)
_control
.Handle;
855
if (PInvoke.SetParent(
_control
, hwndParent).IsNull)
861
_control
.CreateControl();
888
if (!
_control
.ContainsFocus)
890
_control
.Focus();
896
using var activeObject = ComHelpers.GetComScope<IOleInPlaceActiveObject>(
_control
);
959
_control
.Visible = false;
993
|| property.GetValue(
_control
) is ISerializable;
1045
_control
,
1091
using BSTR bstrSource = new(
_control
.GetType().FullName!);
1158
currentProperty.SetValue(
_control
, deserialized);
1168
$"No type converter for property '{currentProperty.Name}' on class {
_control
.GetType().FullName}");
1185
currentProperty.SetValue(
_control
, newValue);
1265
CallParentPropertyChanged(
_control
, _ambientProperties[i].Name);
1277
CallParentPropertyChanged(
_control
, _ambientProperties[i].Name);
1297
if (
_control
is IButtonControl ibuttonControl)
1398
_control
.GetMiscStatus(DVASPECT.DVASPECT_CONTENT, out OLEMISC status);
1409
if ((pQaContainer->pUnkEventSink is not null) && (
_control
is UserControl))
1412
if (GetDefaultEventsInterface(
_control
.GetType()) is { } eventInterface)
1417
using var container = ComHelpers.TryGetComScope<IConnectionPointContainer>(
_control
, out HRESULT hr);
1499
_control
,
1505
if (!saveAllProperties && !currentProperty.ShouldSerializeValue(
_control
))
1516
object sourceValue = currentProperty.GetValue(
_control
)!;
1552
$"No type converter for property '{currentProperty.Name}' on class {
_control
.GetType().FullName}");
1556
value = converter.ConvertToInvariantString(currentProperty.GetValue(
_control
));
1563
currentProperty.GetValue(
_control
),
1644
_control
.Site = new AxSourcingSite(
_control
, _clientSite, "ControlAxSourcingSite");
1648
_control
.Site = null;
1658
if (
_control
is IButtonControl buttonControl)
1666
PInvoke.DestroyAcceleratorTable(new HandleRef<HACCEL>(
_control
, _accelTable));
1671
_control
.OnTopMostActiveXParentChanged(EventArgs.Empty);
1701
Rectangle bounds =
_control
.Bounds;
1713
_control
.Size = size;
1716
if (
_control
.Size.Equals(size))
1748
_control
.Visible = visible;
1780
_control
.Bounds = posRect;
1810
HWND hWndParent = PInvoke.GetParent(
_control
);
1812
PInvokeCore.MapWindowPoints(hWndParent,
_control
, ref rcIntersect);
1824
_control
.SetRegionInternal(
_control
.Region);
1828
_control
.Invalidate();
1862
if (
_control
== target ||
_control
.Contains(target))
1998
rect.left =
_control
.Left;
1999
rect.top =
_control
.Top;
2009
rect.right = rect.left +
_control
.Width;
2010
rect.bottom = rect.top +
_control
.Height;