Page2.cpp
上传用户:sdnygcb
上传日期:2007-01-02
资源大小:18k
文件大小:1k
- // Page2.cpp : implementation file
- //
- #include "stdafx.h"
- #include "Resize.h"
- #include "Page2.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CPage2 property page
- IMPLEMENT_DYNCREATE(CPage2, CPropertyPage)
- CPage2::CPage2() : CPropertyPage(CPage2::IDD)
- {
- //{{AFX_DATA_INIT(CPage2)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- CPage2::~CPage2()
- {
- }
- void CPage2::DoDataExchange(CDataExchange* pDX)
- {
- CPropertyPage::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CPage2)
- DDX_Control(pDX, IDC_FILES, m_List);
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CPage2, CPropertyPage)
- //{{AFX_MSG_MAP(CPage2)
- ON_WM_SIZE()
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CPage2 message handlers
- void CPage2::OnSize(UINT nType, int cx, int cy)
- {
- CPropertyPage::OnSize(nType, cx, cy);
- m_Resizer.Resize(this);
-
- }
- BOOL CPage2::OnInitDialog()
- {
- CPropertyPage::OnInitDialog();
- m_Resizer.Add(this, IDC_FILESLABEL, RESIZE_LOCKTOP|RESIZE_LOCKLEFT|RESIZE_LOCKRIGHT);
- m_Resizer.Add(this, IDC_FILES, RESIZE_LOCKTOP|RESIZE_LOCKLEFT|RESIZE_LOCKRIGHT|RESIZE_LOCKBOTTOM);
- m_List.Dir(0, "*.*");
-
- return TRUE;
- }