MScreenInfoCtl.h
资源名称:mulmon.zip [点击查看]
上传用户:zqemid3000
上传日期:2007-01-04
资源大小:158k
文件大小:3k
源码类别:
多显示器编程
开发平台:
Visual C++
- #if !defined(AFX_MSCREENINFOCTL_H__223DE675_E7D7_11D2_8572_00001A0169AC__INCLUDED_)
- #define AFX_MSCREENINFOCTL_H__223DE675_E7D7_11D2_8572_00001A0169AC__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // MScreenInfoCtl.h : Declaration of the CMScreenInfoCtrl ActiveX Control class.
- /////////////////////////////////////////////////////////////////////////////
- // CMScreenInfoCtrl : See MScreenInfoCtl.cpp for implementation.
- class CMScreenInfoCtrl : public COleControl
- {
- DECLARE_DYNCREATE(CMScreenInfoCtrl)
- // Constructor
- public:
- CMScreenInfoCtrl();
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMScreenInfoCtrl)
- public:
- virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
- virtual void DoPropExchange(CPropExchange* pPX);
- virtual void OnResetState();
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- ~CMScreenInfoCtrl();
- DECLARE_OLECREATE_EX(CMScreenInfoCtrl) // Class factory and guid
- DECLARE_OLETYPELIB(CMScreenInfoCtrl) // GetTypeInfo
- DECLARE_PROPPAGEIDS(CMScreenInfoCtrl) // Property page IDs
- DECLARE_OLECTLTYPE(CMScreenInfoCtrl) // Type name and misc status
- // Message maps
- //{{AFX_MSG(CMScreenInfoCtrl)
- // NOTE - ClassWizard will add and remove member functions here.
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- // Dispatch maps
- //{{AFX_DISPATCH(CMScreenInfoCtrl)
- short m_monitorNum;
- afx_msg void OnMonitorNumChanged();
- afx_msg short GetPrimaryScreen();
- afx_msg void SetPrimaryScreen(short nNewValue);
- afx_msg short GetScreenWidth(short ScreenNo);
- afx_msg void SetScreenWidth(short ScreenNo, short nNewValue);
- afx_msg short GetScreenHeight(short ScreenNo);
- afx_msg void SetScreenHeight(short ScreenNo, short nNewValue);
- afx_msg short GetScreenTop(short ScreenNo);
- afx_msg void SetScreenTop(short ScreenNo, short nNewValue);
- afx_msg short GetScreenLeft(short ScreenNo);
- afx_msg void SetScreenLeft(short ScreenNo, short nNewValue);
- //}}AFX_DISPATCH
- DECLARE_DISPATCH_MAP()
- // Event maps
- //{{AFX_EVENT(CMScreenInfoCtrl)
- //}}AFX_EVENT
- DECLARE_EVENT_MAP()
- // Dispatch and event IDs
- public:
- enum {
- //{{AFX_DISP_ID(CMScreenInfoCtrl)
- dispidMonitorNum = 1L,
- dispidPrimaryScreen = 2L,
- dispidScreenWidth = 3L,
- dispidScreenHeight = 4L,
- dispidScreenTop = 5L,
- dispidScreenLeft = 6L,
- //}}AFX_DISP_ID
- };
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MSCREENINFOCTL_H__223DE675_E7D7_11D2_8572_00001A0169AC__INCLUDED)