Desktop Functions: Smart Device Functions:
|
Search Results for "ActiveX" in [All]ole321: OleDraw
/// Creates a bitmap from the supplied ActiveX control using OleDraw user322: SetParent An example of this that I have encountered is using the FarPoint Spread 3.0/6.0 ActiveX controls. These controls will throw a Runtime protected memory violation exception if they are hosted in a WinForms Form, instantiated and then the Form.MDIParent property is set to an MDI container Form but using the SetParent(childForm.Handle, Me.Handle) call works. Enums
FEATURE_RESTRICT_ACTIVEXINSTALL = 10, 4: SBSP
SBSP_TRUSTEDFORACTIVEX = 0x10000000, misc5: FAQ
Interfaces6: ActiveX
This sample uses IInternetSecurityManager within an ActiveX control to determine the Zone from which the web page hosting the control is loaded. If the Zone is not My Computer, a flag is thrown indicating the zone is not safe. This is useful for cases where you want to mark a control as safe for scripting, but you want to limit the zones in which it is allowed to run or to perform certain actions, something IE security does not allow. Note that you will need to add shdocvw.dll as a reference within your project, and that you should set "Register for COM Interop" to True in Project Properties | Configuration Properties | Build. I haven't been able to get this to work at all in JavaScript unless the ActiveX control in is object tags. So, even if your ActiveX control doesn't have any UI, don't do this:
MyObject = new ActiveXObject("IEZoneSecurity.ZoneSecurityDemo");
ActiveXScriptletRun = unchecked((int)0x00001209),
DownloadUnsignedActiveX = unchecked((int)0x00001004)
ActiveXScriptletRun = 4617
DownloadUnsignedActiveX = 4100
//Get a IOLECommandTarget object form the ActiveX control 11: ITravelLogStg
axWebBrowser = (SHDocVw.IWebBrowser2)webBrowser.ActiveXInstance; 12: IWebBrowser
13: IWebBrowser2
oleacc
// Get the ActiveX interface of some window of class "Internet Explorer_Server" Structures15: FILEDESCRIPTOR
16: LOGFONT
// [in] LayoutDesign.CtlLayout (ActiveX control)
// An ActiveX control returns a handle to a LOGFONT in unmanaged global mem.
// [out] LayoutDesign.CtlLayout (ActiveX control)
// Use the ActiveX's global memory.
// Update the ActiveX control. |