MScreenInfoPpg.cpp
资源名称:mulmon.zip [点击查看]
上传用户:zqemid3000
上传日期:2007-01-04
资源大小:158k
文件大小:2k
源码类别:
多显示器编程
开发平台:
Visual C++
- // MScreenInfoPpg.cpp : Implementation of the CMScreenInfoPropPage property page class.
- #include "stdafx.h"
- #include "MScreenInfo.h"
- #include "MScreenInfoPpg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- IMPLEMENT_DYNCREATE(CMScreenInfoPropPage, COlePropertyPage)
- /////////////////////////////////////////////////////////////////////////////
- // Message map
- BEGIN_MESSAGE_MAP(CMScreenInfoPropPage, COlePropertyPage)
- //{{AFX_MSG_MAP(CMScreenInfoPropPage)
- // NOTE - ClassWizard will add and remove message map entries
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // Initialize class factory and guid
- IMPLEMENT_OLECREATE_EX(CMScreenInfoPropPage, "MSCREENINFO.MScreenInfoPropPage.1",
- 0x223de669, 0xe7d7, 0x11d2, 0x85, 0x72, 0, 0, 0x1a, 0x1, 0x69, 0xac)
- /////////////////////////////////////////////////////////////////////////////
- // CMScreenInfoPropPage::CMScreenInfoPropPageFactory::UpdateRegistry -
- // Adds or removes system registry entries for CMScreenInfoPropPage
- BOOL CMScreenInfoPropPage::CMScreenInfoPropPageFactory::UpdateRegistry(BOOL bRegister)
- {
- if (bRegister)
- return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
- m_clsid, IDS_MSCREENINFO_PPG);
- else
- return AfxOleUnregisterClass(m_clsid, NULL);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMScreenInfoPropPage::CMScreenInfoPropPage - Constructor
- CMScreenInfoPropPage::CMScreenInfoPropPage() :
- COlePropertyPage(IDD, IDS_MSCREENINFO_PPG_CAPTION)
- {
- //{{AFX_DATA_INIT(CMScreenInfoPropPage)
- // NOTE: ClassWizard will add member initialization here
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_DATA_INIT
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMScreenInfoPropPage::DoDataExchange - Moves data between page and properties
- void CMScreenInfoPropPage::DoDataExchange(CDataExchange* pDX)
- {
- //{{AFX_DATA_MAP(CMScreenInfoPropPage)
- // NOTE: ClassWizard will add DDP, DDX, and DDV calls here
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_DATA_MAP
- DDP_PostProcessing(pDX);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMScreenInfoPropPage message handlers