1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- // Int2.cpp : implementation file
- //
- // This is a part of the Microsoft Foundation Classes C++ library.
- // Copyright (C) 1992-1998 Microsoft Corporation
- // All rights reserved.
- //
- // This source code is only intended as a supplement to the
- // Microsoft Foundation Classes Reference and related
- // electronic documentation provided with the library.
- // See these sources for detailed information regarding the
- // Microsoft Foundation Classes product.
- #include "stdafx.h"
- #include "Wizard97.h"
- #include "Int2.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // Interior2 property page
- IMPLEMENT_DYNCREATE(CInterior2, CResizablePageEx)
- CInterior2::CInterior2()
- : CResizablePageEx(CInterior2::IDD, 0, IDS_HEADERTITLE, IDS_HEADERSUBTITLE)
- {
- //{{AFX_DATA_INIT(CInterior2)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- CInterior2::~CInterior2()
- {
- }
- void CInterior2::DoDataExchange(CDataExchange* pDX)
- {
- CResizablePageEx::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CInterior2)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CInterior2, CResizablePageEx)
- //{{AFX_MSG_MAP(CInterior2)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CInterior2 message handlers
- BOOL CInterior2::OnSetActive()
- {
- CPropertySheet* pSheet = (CPropertySheet*)GetParent();
- ASSERT_KINDOF(CPropertySheet, pSheet);
- pSheet->SetWizardButtons( PSWIZB_BACK | PSWIZB_NEXT);
- return CResizablePageEx::OnSetActive();
- }
- BOOL CInterior2::OnInitDialog()
- {
- CResizablePageEx::OnInitDialog();
-
- AddAnchor(IDC_RADIO1, TOP_LEFT, TOP_RIGHT);
- AddAnchor(IDC_STATIC1, TOP_LEFT, MIDDLE_RIGHT);
- AddAnchor(IDC_RADIO2, MIDDLE_LEFT, MIDDLE_RIGHT);
- AddAnchor(IDC_STATIC2, MIDDLE_LEFT, BOTTOM_RIGHT);
- AddAnchor(IDC_STATIC3, TOP_LEFT);
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
|