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);
625
GetMnemonicList(
_control
, mnemonicList);
683
PInvoke.DestroyAcceleratorTable(new HandleRef<HACCEL>(
_control
, _accelTable));
707
Size size =
_control
.Size;
743
string streamName =
_control
.GetType().FullName!;
768
*phwnd = (HWND)
_control
.Handle;
863
if (PInvoke.SetParent(
_control
, hwndParent).IsNull)
869
_control
.CreateControl();
896
if (!
_control
.ContainsFocus)
898
_control
.Focus();
904
using var activeObject = ComHelpers.GetComScope<IOleInPlaceActiveObject>(
_control
);
967
_control
.Visible = false;
1001
|| property.GetValue(
_control
) is ISerializable;
1053
_control
,
1099
using BSTR bstrSource = new(
_control
.GetType().FullName!);
1166
currentProperty.SetValue(
_control
, deserialized);
1176
$"No type converter for property '{currentProperty.Name}' on class {
_control
.GetType().FullName}");
1193
currentProperty.SetValue(
_control
, newValue);
1273
CallParentPropertyChanged(
_control
, _ambientProperties[i].Name);
1285
CallParentPropertyChanged(
_control
, _ambientProperties[i].Name);
1305
if (
_control
is IButtonControl ibuttonControl)
1406
_control
.GetMiscStatus(DVASPECT.DVASPECT_CONTENT, out OLEMISC status);
1417
if ((pQaContainer->pUnkEventSink is not null) && (
_control
is UserControl))
1420
if (GetDefaultEventsInterface(
_control
.GetType()) is { } eventInterface)
1425
using var container = ComHelpers.TryGetComScope<IConnectionPointContainer>(
_control
, out HRESULT hr);
1507
_control
,
1513
if (!saveAllProperties && !currentProperty.ShouldSerializeValue(
_control
))
1524
object sourceValue = currentProperty.GetValue(
_control
)!;
1560
$"No type converter for property '{currentProperty.Name}' on class {
_control
.GetType().FullName}");
1564
value = converter.ConvertToInvariantString(currentProperty.GetValue(
_control
));
1571
currentProperty.GetValue(
_control
),
1652
_control
.Site = new AxSourcingSite(
_control
, _clientSite, "ControlAxSourcingSite");
1656
_control
.Site = null;
1666
if (
_control
is IButtonControl buttonControl)
1674
PInvoke.DestroyAcceleratorTable(new HandleRef<HACCEL>(
_control
, _accelTable));
1679
_control
.OnTopMostActiveXParentChanged(EventArgs.Empty);
1709
Rectangle bounds =
_control
.Bounds;
1721
_control
.Size = size;
1724
if (
_control
.Size.Equals(size))
1756
_control
.Visible = visible;
1788
_control
.Bounds = posRect;
1818
HWND hWndParent = PInvoke.GetParent(
_control
);
1820
PInvokeCore.MapWindowPoints(hWndParent,
_control
, ref rcIntersect);
1832
_control
.SetRegionInternal(
_control
.Region);
1836
_control
.Invalidate();
1870
if (
_control
== target ||
_control
.Contains(target))
2006
rect.left =
_control
.Left;
2007
rect.top =
_control
.Top;
2017
rect.right = rect.left +
_control
.Width;
2018
rect.bottom = rect.top +
_control
.Height;