TabResizablePage.cpp
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:2k
- // TabResizablePage.cpp : implementation file
- //
- #include "stdafx.h"
- #include "propertysheet.h"
- #include "TabResizablePage.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CTabResizablePage dialog
- CTabResizablePage::CTabResizablePage()
- : CXTPPropertyPage(CTabResizablePage::IDD)
- {
- //{{AFX_DATA_INIT(CTabResizablePage)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- void CTabResizablePage::DoDataExchange(CDataExchange* pDX)
- {
- CXTPPropertyPage::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CTabResizablePage)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CTabResizablePage, CXTPPropertyPage)
- //{{AFX_MSG_MAP(CTabResizablePage)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CTabResizablePage message handlers
- BOOL CTabResizablePage::OnInitDialog()
- {
- CXTPPropertyPage::OnInitDialog();
- ModifyStyle(0, WS_CLIPCHILDREN | WS_VSCROLL);
- m_group1.SubclassDlgItem(IDC_STATIC_GROUP1, this);
- m_group2.SubclassDlgItem(IDC_STATIC_GROUP2, this);
- SetResize(IDC_STATIC_GROUP1, SZ_TOP_LEFT, SZ_TOP_CENTER);
- SetResize(IDC_STATIC_GROUP2, SZ_TOP_CENTER, SZ_TOP_RIGHT);
- SetResize(IDC_RADIO1, SZ_TOP_CENTER, SZ_TOP_RIGHT);
- SetResize(IDC_EDIT1, SZ_TOP_LEFT, SZ_BOTTOM_RIGHT);
- SetResize(IDC_BUTTON, SZ_BOTTOM_CENTER, SZ_BOTTOM_CENTER);
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }