MScreenInfo.odl
资源名称:mulmon.zip [点击查看]
上传用户:zqemid3000
上传日期:2007-01-04
资源大小:158k
文件大小:2k
源码类别:
多显示器编程
开发平台:
Visual C++
- // MScreenInfo.odl : type library source for ActiveX Control project.
- // This file will be processed by the Make Type Library (mktyplib) tool to
- // produce the type library (MScreenInfo.tlb) that will become a resource in
- // MScreenInfo.ocx.
- #include <olectl.h>
- #include <idispids.h>
- [ uuid(223DE665-E7D7-11D2-8572-00001A0169AC), version(1.0),
- helpfile("MScreenInfo.hlp"),
- helpstring("MScreenInfo ActiveX Control module"),
- control ]
- library MSCREENINFOLib
- {
- importlib(STDOLE_TLB);
- importlib(STDTYPE_TLB);
- // Primary dispatch interface for CMScreenInfoCtrl
- [ uuid(223DE666-E7D7-11D2-8572-00001A0169AC),
- helpstring("Dispatch interface for MScreenInfo Control"), hidden ]
- dispinterface _DMScreenInfo
- {
- properties:
- // NOTE - ClassWizard will maintain property information here.
- // Use extreme caution when editing this section.
- //{{AFX_ODL_PROP(CMScreenInfoCtrl)
- [id(1)] short MonitorNum;
- [id(2)] short PrimaryScreen;
- //}}AFX_ODL_PROP
- methods:
- // NOTE - ClassWizard will maintain method information here.
- // Use extreme caution when editing this section.
- //{{AFX_ODL_METHOD(CMScreenInfoCtrl)
- [id(3), propget] short ScreenWidth(short ScreenNo);
- [id(3), propput] void ScreenWidth(short ScreenNo, short nNewValue);
- [id(4), propget] short ScreenHeight(short ScreenNo);
- [id(4), propput] void ScreenHeight(short ScreenNo, short nNewValue);
- [id(5), propget] short ScreenTop(short ScreenNo);
- [id(5), propput] void ScreenTop(short ScreenNo, short nNewValue);
- [id(6), propget] short ScreenLeft(short ScreenNo);
- [id(6), propput] void ScreenLeft(short ScreenNo, short nNewValue);
- //}}AFX_ODL_METHOD
- };
- // Event dispatch interface for CMScreenInfoCtrl
- [ uuid(223DE667-E7D7-11D2-8572-00001A0169AC),
- helpstring("Event interface for MScreenInfo Control") ]
- dispinterface _DMScreenInfoEvents
- {
- properties:
- // Event interface has no properties
- methods:
- // NOTE - ClassWizard will maintain event information here.
- // Use extreme caution when editing this section.
- //{{AFX_ODL_EVENT(CMScreenInfoCtrl)
- //}}AFX_ODL_EVENT
- };
- // Class information for CMScreenInfoCtrl
- [ uuid(223DE668-E7D7-11D2-8572-00001A0169AC),
- helpstring("MScreenInfo Control"), control ]
- coclass MScreenInfo
- {
- [default] dispinterface _DMScreenInfo;
- [default, source] dispinterface _DMScreenInfoEvents;
- };
- //{{AFX_APPEND_ODL}}
- //}}AFX_APPEND_ODL}}
- };