level 1
zhongwei228
楼主
#pragma once
// CMySheet1
class CMySheet1 : public CPropertySheet
{
DECLARE_DYNAMIC(CMySheet1)
public:
CMySheet1(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
CMySheet1(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
virtual ~CMySheet1();
CPropertyPage* m_propPage1;
CPropertyPage* m_propPage2;
protected:
DECLARE_MESSAGE_MAP()
};
CPP
#include "stdafx.h"
#include "T123.h"
#include "MySheet1.h"
#include "Page1.h"
#include "Page2.h"
// CMySheet1
IMPLEMENT_DYNAMIC(CMySheet1, CPropertySheet)
CMySheet1::CMySheet1(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
{
m_psh.dwFlags |= PSH_AEROWIZARD | PSH_USEICONID;
m_psh.pszIcon = MAKEINTRESOURCE(IDR_MAINFRAME);
m_propPage1 = (CPage1*) new CPage1();
m_propPage2 = (CPage2*) new CPage2();
AddPage(m_propPage1);
AddPage(m_propPage2);
}
CMySheet1::CMySheet1(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(pszCaption, pParentWnd, iSelectPage)
{
AddPage(m_propPage1);
AddPage(m_propPage2);
}
CMySheet1::~CMySheet1()
{
}
BEGIN_MESSAGE_MAP(CMySheet1, CPropertySheet)
END_MESSAGE_MAP()
// CMySheet1 message handlers
调用
void CT123Dlg::OnBnClickedButton12()
{
// TODO: Add your control notification handler code here
CMySheet1 dlg(IDS_STRING102);
dlg.DoModal();
}
2010年05月15日 04点05分
1
// CMySheet1
class CMySheet1 : public CPropertySheet
{
DECLARE_DYNAMIC(CMySheet1)
public:
CMySheet1(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
CMySheet1(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
virtual ~CMySheet1();
CPropertyPage* m_propPage1;
CPropertyPage* m_propPage2;
protected:
DECLARE_MESSAGE_MAP()
};
CPP
#include "stdafx.h"
#include "T123.h"
#include "MySheet1.h"
#include "Page1.h"
#include "Page2.h"
// CMySheet1
IMPLEMENT_DYNAMIC(CMySheet1, CPropertySheet)
CMySheet1::CMySheet1(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
{
m_psh.dwFlags |= PSH_AEROWIZARD | PSH_USEICONID;
m_psh.pszIcon = MAKEINTRESOURCE(IDR_MAINFRAME);
m_propPage1 = (CPage1*) new CPage1();
m_propPage2 = (CPage2*) new CPage2();
AddPage(m_propPage1);
AddPage(m_propPage2);
}
CMySheet1::CMySheet1(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(pszCaption, pParentWnd, iSelectPage)
{
AddPage(m_propPage1);
AddPage(m_propPage2);
}
CMySheet1::~CMySheet1()
{
}
BEGIN_MESSAGE_MAP(CMySheet1, CPropertySheet)
END_MESSAGE_MAP()
// CMySheet1 message handlers
调用
void CT123Dlg::OnBnClickedButton12()
{
// TODO: Add your control notification handler code here
CMySheet1 dlg(IDS_STRING102);
dlg.DoModal();
}

