mypropertysheet.cpp
来自「This paper provides video capture and ca」· C++ 代码 · 共 79 行
CPP
79 行
// MyPropertySheet.cpp : implementation file//#include "stdafx.h"#include "Console.h"#include "MyPropertySheet.h"#include "staticex.h"#ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endif/////////////////////////////////////////////////////////////////////////////// CMyPropertySheetIMPLEMENT_DYNAMIC(CMyPropertySheet, CPropertySheet)/*CMyPropertySheet::CMyPropertySheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage) :CPropertySheet(nIDCaption, pParentWnd, iSelectPage){ AddAllPages();}CMyPropertySheet::CMyPropertySheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage) :CPropertySheet(pszCaption, pParentWnd, iSelectPage){ AddAllPages();}*/CMyPropertySheet::CMyPropertySheet(UINT nIDCaption, CWnd* pParentWnd,CStaticEx **pWnd, UINT iSelectPage) :CPropertySheet(nIDCaption, pParentWnd, iSelectPage){ AddAllPages(); m_pStatic = pWnd; m_page1.m_pStatic=pWnd; m_page2.m_pStatic=pWnd; m_page3.m_pStatic=pWnd; m_page4.m_pStatic=pWnd;}CMyPropertySheet::CMyPropertySheet(LPCTSTR pszCaption,CWnd* pParentWnd, CStaticEx **pWnd, UINT iSelectPage) :CPropertySheet(pszCaption, pParentWnd, iSelectPage){ AddAllPages(); m_pStatic = pWnd; m_page1.m_pStatic=pWnd; m_page2.m_pStatic=pWnd; m_page3.m_pStatic=pWnd; m_page4.m_pStatic=pWnd;}CMyPropertySheet::~CMyPropertySheet(){}BEGIN_MESSAGE_MAP(CMyPropertySheet, CPropertySheet) //{{AFX_MSG_MAP(CMyPropertySheet) // NOTE - the ClassWizard will add and remove mapping macros here. //}}AFX_MSG_MAPEND_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////// CMyPropertySheet message handlersvoid CMyPropertySheet::AddAllPages(){ AddPage(&m_page1); AddPage(&m_page2); AddPage(&m_page3); AddPage(&m_page4);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?