155 references to ActiveX
System.Windows.Forms (155)
winforms\Managed\System\WinForms\AxHost.cs (63)
343
int hr = GetOleObject().GetMiscStatus(NativeMethods.
ActiveX
.DVASPECT_CONTENT, out bits);
1166
AmbientChanged(NativeMethods.
ActiveX
.DISPID_AMBIENT_FONT);
1175
AmbientChanged(NativeMethods.
ActiveX
.DISPID_AMBIENT_FORECOLOR);
1184
AmbientChanged(NativeMethods.
ActiveX
.DISPID_AMBIENT_BACKCOLOR);
1245
oleCtl.OnAmbientPropertyChange(NativeMethods.
ActiveX
.DISPID_AMBIENT_DISPLAYNAME);
1469
((UnsafeNativeMethods.IOleControlSite)oleSite).TransformCoords(phm, pcont, NativeMethods.
ActiveX
.XFORMCOORDS_SIZE | NativeMethods.
ActiveX
.XFORMCOORDS_HIMETRICTOCONTAINER);
1479
((UnsafeNativeMethods.IOleControlSite)oleSite).TransformCoords(phm, pcont, NativeMethods.
ActiveX
.XFORMCOORDS_SIZE | NativeMethods.
ActiveX
.XFORMCOORDS_CONTAINERTOHIMETRIC);
1511
GetOleObject().SetExtent(NativeMethods.
ActiveX
.DVASPECT_CONTENT, sz);
1517
GetOleObject().GetExtent(NativeMethods.
ActiveX
.DVASPECT_CONTENT, sz);
1519
GetOleObject().SetExtent(NativeMethods.
ActiveX
.DVASPECT_CONTENT, sz);
1531
GetOleObject().GetExtent(NativeMethods.
ActiveX
.DVASPECT_CONTENT, sz);
2401
case NativeMethods.
ActiveX
.DISPID_AMBIENT_USERMODE:
2404
case NativeMethods.
ActiveX
.DISPID_AMBIENT_AUTOCLIP:
2407
case NativeMethods.
ActiveX
.DISPID_AMBIENT_MESSAGEREFLECT:
2410
case NativeMethods.
ActiveX
.DISPID_AMBIENT_UIDEAD:
2413
case NativeMethods.
ActiveX
.DISPID_AMBIENT_DISPLAYASDEFAULT:
2416
case NativeMethods.
ActiveX
.DISPID_AMBIENT_FONT:
2422
case NativeMethods.
ActiveX
.DISPID_AMBIENT_SHOWGRABHANDLES:
2425
case NativeMethods.
ActiveX
.DISPID_AMBIENT_SHOWHATCHING:
2428
case NativeMethods.
ActiveX
.DISPID_AMBIENT_BACKCOLOR:
2433
case NativeMethods.
ActiveX
.DISPID_AMBIENT_FORECOLOR:
2438
case NativeMethods.
ActiveX
.DISPID_AMBIENT_DISPLAYNAME:
2442
case NativeMethods.
ActiveX
.DISPID_AMBIENT_LOCALEID:
2445
case NativeMethods.
ActiveX
.DISPID_AMBIENT_RIGHTTOLEFT:
2560
ret = UnsafeNativeMethods.CoCreateInstance(ref clsid, null, INPROC_SERVER, ref NativeMethods.
ActiveX
.IID_IUnknown);
2573
icf2.CreateInstanceLic(null, null, ref NativeMethods.
ActiveX
.IID_IUnknown, license, out instance);
3008
Debug.Assert(dispid != NativeMethods.
ActiveX
.DISPID_UNKNOWN, "Wrong dispid sent to GetPropertyDescriptorFromDispid");
4081
if ((dwFlags & NativeMethods.
ActiveX
.XFORMCOORDS_HIMETRICTOCONTAINER) != 0) {
4082
if ((dwFlags & NativeMethods.
ActiveX
.XFORMCOORDS_SIZE) != 0) {
4086
else if ((dwFlags & NativeMethods.
ActiveX
.XFORMCOORDS_POSITION) != 0) {
4095
else if ((dwFlags & NativeMethods.
ActiveX
.XFORMCOORDS_CONTAINERTOHIMETRIC) != 0) {
4096
if ((dwFlags & NativeMethods.
ActiveX
.XFORMCOORDS_SIZE) != 0) {
4100
else if ((dwFlags & NativeMethods.
ActiveX
.XFORMCOORDS_POSITION) != 0) {
4361
if (dispid != NativeMethods.
ActiveX
.DISPID_UNKNOWN) {
4457
qaContainer.dwAmbientFlags = NativeMethods.
ActiveX
.QACONTAINER_AUTOCLIP | NativeMethods.
ActiveX
.QACONTAINER_MESSAGEREFLECT |
4458
NativeMethods.
ActiveX
.QACONTAINER_SUPPORTSMNEMONICS;
4460
qaContainer.dwAmbientFlags |= NativeMethods.
ActiveX
.QACONTAINER_USERMODE;
4592
axState[fOwnWindow] = ((bits & NativeMethods.
ActiveX
.OLEMISC_INVISIBLEATRUNTIME) != 0) && IsUserMode();
4593
axState[fSimpleFrame] = ((bits & NativeMethods.
ActiveX
.OLEMISC_SIMPLEFRAME) != 0);
4600
if ((miscStatusBits & NativeMethods.
ActiveX
.OLEMISC_SETCLIENTSITEFIRST) != 0) {
5456
bool selected = (dwWhich & NativeMethods.
ActiveX
.GC_WCH_FSELECTED) != 0;
5457
bool reverse = (dwWhich & NativeMethods.
ActiveX
.GC_WCH_FREVERSEDIR) != 0;
5459
bool onlyNext = (dwWhich & NativeMethods.
ActiveX
.GC_WCH_FONLYNEXT) != 0;
5460
bool onlyPrev = (dwWhich & NativeMethods.
ActiveX
.GC_WCH_FONLYPREV) != 0;
5461
dwWhich = dwWhich & ~(NativeMethods.
ActiveX
.GC_WCH_FSELECTED | NativeMethods.
ActiveX
.GC_WCH_FREVERSEDIR |
5462
NativeMethods.
ActiveX
.GC_WCH_FONLYNEXT | NativeMethods.
ActiveX
.GC_WCH_FONLYPREV);
5467
if (dwWhich == NativeMethods.
ActiveX
.GC_WCH_CONTAINER || dwWhich == NativeMethods.
ActiveX
.GC_WCH_CONTAINED) {
5480
case NativeMethods.
ActiveX
.GC_WCH_CONTAINED:
5484
case NativeMethods.
ActiveX
.GC_WCH_SIBLING:
5500
case NativeMethods.
ActiveX
.GC_WCH_CONTAINER:
5514
case NativeMethods.
ActiveX
.GC_WCH_ALL:
5555
if (hostctl != null && (dwOleContF & NativeMethods.
ActiveX
.OLECONTF_EMBEDDINGS) != 0) {
5558
else if ((dwOleContF & NativeMethods.
ActiveX
.OLECONTF_OTHERS) != 0) {
6176
if (rval < NativeMethods.
ActiveX
.ALIGN_MIN || rval > NativeMethods.
ActiveX
.ALIGN_MAX) {
6177
rval = NativeMethods.
ActiveX
.ALIGN_NO_CHANGE;
7033
return NativeMethods.
ActiveX
.DISPID_UNKNOWN;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2AboutBoxPropertyDescriptor.cs (3)
23
public Com2AboutBoxPropertyDescriptor() : base(NativeMethods.
ActiveX
.DISPID_ABOUTBOX, "About", new Attribute[]{new DispIdAttribute(NativeMethods.
ActiveX
.DISPID_ABOUTBOX),
166
int hr = pDisp.Invoke(NativeMethods.
ActiveX
.DISPID_ABOUTBOX,
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2ICategorizePropertiesHandler.cs (11)
39
case NativeMethods.
ActiveX
.PROPCAT_Nil:
41
case NativeMethods.
ActiveX
.PROPCAT_Misc:
43
case NativeMethods.
ActiveX
.PROPCAT_Font:
45
case NativeMethods.
ActiveX
.PROPCAT_Position:
47
case NativeMethods.
ActiveX
.PROPCAT_Appearance:
49
case NativeMethods.
ActiveX
.PROPCAT_Behavior:
51
case NativeMethods.
ActiveX
.PROPCAT_Data:
53
case NativeMethods.
ActiveX
.PROPCAT_List:
55
case NativeMethods.
ActiveX
.PROPCAT_Text:
57
case NativeMethods.
ActiveX
.PROPCAT_Scale:
59
case NativeMethods.
ActiveX
.PROPCAT_DDE:
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PictureConverter.cs (1)
32
if (pd.DISPID == NativeMethods.
ActiveX
.DISPID_MOUSEICON || pd.Name.IndexOf("Icon") != -1) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (4)
169
cnd.GetPropertyValue(obj, NativeMethods.
ActiveX
.DISPID_Name, ref succeeded);
171
dispid = NativeMethods.
ActiveX
.DISPID_Name;
595
dispid == NativeMethods.
ActiveX
.DISPID_HWND) {
658
if (funcDesc.memid == NativeMethods.
ActiveX
.DISPID_ABOUTBOX) {
winforms\Managed\System\WinForms\Control.cs (27)
1078
DispId(NativeMethods.
ActiveX
.DISPID_BACKCOLOR),
2425
DispId(NativeMethods.
ActiveX
.DISPID_ENABLED),
2491
DispId(NativeMethods.
ActiveX
.DISPID_FONT),
2708
DispId(NativeMethods.
ActiveX
.DISPID_FORECOLOR),
2851
DispId(NativeMethods.
ActiveX
.DISPID_HWND),
3965
DispId(NativeMethods.
ActiveX
.DISPID_TABSTOP),
4035
DispId(NativeMethods.
ActiveX
.DISPID_TEXT),
16315
new AmbientProperty("Font", NativeMethods.
ActiveX
.DISPID_AMBIENT_FONT),
16316
new AmbientProperty("BackColor", NativeMethods.
ActiveX
.DISPID_AMBIENT_BACKCOLOR),
16317
new AmbientProperty("ForeColor", NativeMethods.
ActiveX
.DISPID_AMBIENT_FORECOLOR)
16328
AmbientProperty prop = LookupAmbient(NativeMethods.
ActiveX
.DISPID_AMBIENT_BACKCOLOR);
16332
if (GetAmbientProperty(NativeMethods.
ActiveX
.DISPID_AMBIENT_BACKCOLOR, ref obj)) {
16366
AmbientProperty prop = LookupAmbient(NativeMethods.
ActiveX
.DISPID_AMBIENT_FONT);
16370
if (GetAmbientProperty(NativeMethods.
ActiveX
.DISPID_AMBIENT_FONT, ref obj)) {
16410
AmbientProperty prop = LookupAmbient(NativeMethods.
ActiveX
.DISPID_AMBIENT_FORECOLOR);
16414
if (GetAmbientProperty(NativeMethods.
ActiveX
.DISPID_AMBIENT_FORECOLOR, ref obj)) {
16750
verbProperties.grfAttribs = NativeMethods.
ActiveX
.OLEVERBATTRIB_ONCONTAINERMENU;
17515
if (dispID != NativeMethods.
ActiveX
.DISPID_UNKNOWN) {
17532
case NativeMethods.
ActiveX
.DISPID_AMBIENT_UIDEAD:
17533
if (GetAmbientProperty(NativeMethods.
ActiveX
.DISPID_AMBIENT_UIDEAD, ref obj)) {
17538
case NativeMethods.
ActiveX
.DISPID_AMBIENT_DISPLAYASDEFAULT:
17540
if (ibuttonControl != null && GetAmbientProperty(NativeMethods.
ActiveX
.DISPID_AMBIENT_DISPLAYASDEFAULT, ref obj)) {
17617
AmbientProperty prop = LookupAmbient(NativeMethods.
ActiveX
.DISPID_AMBIENT_BACKCOLOR);
17620
prop = LookupAmbient(NativeMethods.
ActiveX
.DISPID_AMBIENT_FORECOLOR);
17627
prop = LookupAmbient(NativeMethods.
ActiveX
.DISPID_AMBIENT_FONT);
18184
if (GetAmbientProperty(NativeMethods.
ActiveX
.DISPID_AMBIENT_UIDEAD, ref obj)) {
18188
if (control is IButtonControl && GetAmbientProperty(NativeMethods.
ActiveX
.DISPID_AMBIENT_UIDEAD, ref obj)) {
winforms\Managed\System\WinForms\DataGrid.cs (1)
547
DispId(NativeMethods.
ActiveX
.DISPID_BORDERSTYLE),
winforms\Managed\System\WinForms\Form.cs (2)
829
DispId(NativeMethods.
ActiveX
.DISPID_BORDERSTYLE),
2482
DispId(NativeMethods.
ActiveX
.DISPID_TABSTOP),
winforms\Managed\System\WinForms\HtmlDocument.cs (2)
559
int[] dispids = new int[] { NativeMethods.
ActiveX
.DISPID_UNKNOWN };
562
if (NativeMethods.Succeeded(hr) && (dispids[0] != NativeMethods.
ActiveX
.DISPID_UNKNOWN))
winforms\Managed\System\WinForms\HtmlElement.cs (2)
608
int[] dispids = new int[] { NativeMethods.
ActiveX
.DISPID_UNKNOWN };
611
if (NativeMethods.Succeeded(hr) && (dispids[0] != NativeMethods.
ActiveX
.DISPID_UNKNOWN))
winforms\Managed\System\WinForms\Label.cs (1)
278
DispId(NativeMethods.
ActiveX
.DISPID_BORDERSTYLE),
winforms\Managed\System\WinForms\ListBox.cs (1)
262
DispId(NativeMethods.
ActiveX
.DISPID_BORDERSTYLE),
winforms\Managed\System\WinForms\ListView.cs (1)
459
DispId(NativeMethods.
ActiveX
.DISPID_BORDERSTYLE),
winforms\Managed\System\WinForms\Panel.cs (1)
129
DispId(NativeMethods.
ActiveX
.DISPID_BORDERSTYLE),
winforms\Managed\System\WinForms\PictureBox.cs (1)
157
DispId(NativeMethods.
ActiveX
.DISPID_BORDERSTYLE),
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
2777
if (ComNativeDescriptor.Instance.IsNameDispId(obj, dispID) || dispID == NativeMethods.
ActiveX
.DISPID_Name) {
winforms\Managed\System\WinForms\SplitContainer.cs (2)
354
System.Runtime.InteropServices.DispId(NativeMethods.
ActiveX
.DISPID_BORDERSTYLE),
957
DispId(NativeMethods.
ActiveX
.DISPID_TABSTOP),
winforms\Managed\System\WinForms\Splitter.cs (1)
244
System.Runtime.InteropServices.DispId(NativeMethods.
ActiveX
.DISPID_BORDERSTYLE),
winforms\Managed\System\WinForms\StatusBarPanel.cs (1)
148
DispId(NativeMethods.
ActiveX
.DISPID_BORDERSTYLE),
winforms\Managed\System\WinForms\TextBoxBase.cs (3)
290
DispId(NativeMethods.
ActiveX
.DISPID_BACKCOLOR),
385
DispId(NativeMethods.
ActiveX
.DISPID_BORDERSTYLE),
584
DispId(NativeMethods.
ActiveX
.DISPID_FORECOLOR),
winforms\Managed\System\WinForms\ToolBar.cs (1)
320
DispId(NativeMethods.
ActiveX
.DISPID_BORDERSTYLE),
winforms\Managed\System\WinForms\ToolStrip.cs (1)
1835
DispId(NativeMethods.
ActiveX
.DISPID_TABSTOP),
winforms\Managed\System\WinForms\ToolStripTextBox.cs (1)
323
DispId(NativeMethods.
ActiveX
.DISPID_BORDERSTYLE),
winforms\Managed\System\WinForms\TreeView.cs (1)
284
DispId(NativeMethods.
ActiveX
.DISPID_BORDERSTYLE),
winforms\Managed\System\WinForms\UpDownBase.cs (1)
279
DispId(NativeMethods.
ActiveX
.DISPID_BORDERSTYLE),
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1879
if (dispid != NativeMethods.
ActiveX
.DISPID_READYSTATE) {
winforms\Managed\System\WinForms\WebBrowserBase.cs (14)
591
AmbientChanged(NativeMethods.
ActiveX
.DISPID_AMBIENT_FONT);
602
AmbientChanged(NativeMethods.
ActiveX
.DISPID_AMBIENT_FORECOLOR);
613
AmbientChanged(NativeMethods.
ActiveX
.DISPID_AMBIENT_BACKCOLOR);
914
this.activeXInstance = UnsafeNativeMethods.CoCreateInstance(ref clsid, null, NativeMethods.CLSCTX_INPROC_SERVER, ref NativeMethods.
ActiveX
.IID_IUnknown);
963
int hr = this.axOleObject.GetMiscStatus(NativeMethods.
ActiveX
.DVASPECT_CONTENT, out bits);
964
if (NativeMethods.Succeeded(hr) && ((bits & NativeMethods.
ActiveX
.OLEMISC_SETCLIENTSITEFIRST) != 0)) {
1157
this.axOleObject.SetExtent(NativeMethods.
ActiveX
.DVASPECT_CONTENT, sz);
1163
this.axOleObject.GetExtent(NativeMethods.
ActiveX
.DVASPECT_CONTENT, sz);
1165
this.axOleObject.SetExtent(NativeMethods.
ActiveX
.DVASPECT_CONTENT, sz);
1176
this.axOleObject.GetExtent(NativeMethods.
ActiveX
.DVASPECT_CONTENT, sz);
1186
((UnsafeNativeMethods.IOleControlSite)this.ActiveXSite).TransformCoords(phm, pcont, NativeMethods.
ActiveX
.XFORMCOORDS_SIZE | NativeMethods.
ActiveX
.XFORMCOORDS_HIMETRICTOCONTAINER);
1196
((UnsafeNativeMethods.IOleControlSite)this.ActiveXSite).TransformCoords(phm, pcont, NativeMethods.
ActiveX
.XFORMCOORDS_SIZE | NativeMethods.
ActiveX
.XFORMCOORDS_CONTAINERTOHIMETRIC);
winforms\Managed\System\WinForms\WebBrowserSiteBase.cs (6)
132
if ((dwFlags & NativeMethods.
ActiveX
.XFORMCOORDS_HIMETRICTOCONTAINER) != 0) {
133
if ((dwFlags & NativeMethods.
ActiveX
.XFORMCOORDS_SIZE) != 0) {
137
else if ((dwFlags & NativeMethods.
ActiveX
.XFORMCOORDS_POSITION) != 0) {
145
else if ((dwFlags & NativeMethods.
ActiveX
.XFORMCOORDS_CONTAINERTOHIMETRIC) != 0) {
146
if ((dwFlags & NativeMethods.
ActiveX
.XFORMCOORDS_SIZE) != 0) {
150
else if ((dwFlags & NativeMethods.
ActiveX
.XFORMCOORDS_POSITION) != 0) {