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