?? mypropertysheet.cpp
字號:
// 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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -