that is a tab control
see the help about tab control in msdn
see the help about tab control in msdn
解决方案 »
- error C2065: 'AfxThrowOLEDBException' : undeclared identifier
- 运行一个程序或打开程序的一个窗口怎样才能使其不显示在任务管理器中应用程序页中
- 请问大家现在都用什么版本的VC++开发工具啊?
- 《Windows 核心编程》22章最后挂接 API 的例子在 98 下运行有误。求解
- Dialog窗口不显示也不在TaskBar里显示
- The ActiveX control cannot be instantiated!!
- 字符串连接问题
- nmake怎么使用?
- VC高手请进,将FORM里的控件输出在打印机上!
- 什么是MCSE?哪里有它的学习资料下载?
- 不解其中奥妙,望赐教
- 建议:各位VC专家,大师,宗师,小弟初学VC问题之菜,如不屑一答......
class CMyPropertyPage1 : public CPropertyPage
{
DECLARE_DYNCREATE(CMyPropertyPage1)
public:
CMyPropertyPage1();
~CMyPropertyPage1();
enum { IDD = IDD_PROPPAGE1 };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
DECLARE_MESSAGE_MAP()
};class CMyPropertyPage2 : public CPropertyPage
{
DECLARE_DYNCREATE(CMyPropertyPage2)
public:
CMyPropertyPage2();
~CMyPropertyPage2();
enum { IDD = IDD_PROPPAGE2 };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
DECLARE_MESSAGE_MAP()
};// MyPropertyPage.cpp
#include "MyPropertyPage.h"IMPLEMENT_DYNCREATE(CMyPropertyPage1, CPropertyPage)
IMPLEMENT_DYNCREATE(CMyPropertyPage2, CPropertyPage)
CMyPropertyPage1::CMyPropertyPage1() : CPropertyPage(CMyPropertyPage1::IDD)
{
}
CMyPropertyPage1::~CMyPropertyPage1()
{
}
void CMyPropertyPage1::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(CMyPropertyPage1, CPropertyPage)
END_MESSAGE_MAP()CMyPropertyPage2::CMyPropertyPage2() : CPropertyPage(CMyPropertyPage2::IDD)
{
}
CMyPropertyPage2::~CMyPropertyPage2()
{
}void CMyPropertyPage2::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
}BEGIN_MESSAGE_MAP(CMyPropertyPage2, CPropertyPage)
END_MESSAGE_MAP()
// MyPropertySheet.h
class CMyPropertyPage1;
class CMyPropertyPage2;
class CMyPropertySheet : public CPropertySheet
{
DECLARE_DYNAMIC(CMyPropertySheet)
public:
CMyPropertySheet(CWnd* pWndParent = NULL);
public:
CMyPropertyPage1 m_Page1;
CMyPropertyPage2 m_Page2;
public:
virtual ~CMyPropertySheet();
DECLARE_MESSAGE_MAP()
};//MyPropertySheet.cpp
#include "MyPropertyPage.h"
#include "MyPropertySheet.h"
IMPLEMENT_DYNAMIC(CMyPropertySheet, CPropertySheet)
CMyPropertySheet::CMyPropertySheet(CWnd* pWndParent)
: CPropertySheet(IDS_PROPSHT_CAPTION, pWndParent)
{
AddPage(&m_Page1);
AddPage(&m_Page2);
}CMyPropertySheet::~CMyPropertySheet()
{
}
BEGIN_MESSAGE_MAP(CMyPropertySheet, CPropertySheet)
END_MESSAGE_MAP()//使用MyPropertySheet
CMyPropertySheet myPropertySheet;
myPropertySheet.DoModal();