TabLongPage.cpp
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:1k
- // TabLongPage.cpp : implementation file
- //
- #include "stdafx.h"
- #include "propertysheet.h"
- #include "TabLongPage.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CTabLongPage property page
- IMPLEMENT_DYNCREATE(CTabLongPage, CXTPPropertyPage)
- CTabLongPage::CTabLongPage() : CXTPPropertyPage(CTabLongPage::IDD)
- {
- //{{AFX_DATA_INIT(CTabLongPage)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- CTabLongPage::~CTabLongPage()
- {
- }
- void CTabLongPage::DoDataExchange(CDataExchange* pDX)
- {
- CXTPPropertyPage::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CTabLongPage)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CTabLongPage, CXTPPropertyPage)
- //{{AFX_MSG_MAP(CTabLongPage)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CTabLongPage message handlers
- BOOL CTabLongPage::OnInitDialog()
- {
- CXTPPropertyPage::OnInitDialog();
- ModifyStyle(0, WS_CLIPCHILDREN | WS_VSCROLL);
-
- for (int i = 0; i < 5; i++)
- {
- m_captions[i].SubclassDlgItem(IDC_STATIC_SUBCAPTION1 + i, this);
- SetResize(IDC_STATIC_SUBCAPTION1 + i, SZ_TOP_LEFT, SZ_TOP_RIGHT);
- }
-
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }