Int1.cpp 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // Int1.cpp : implementation file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12. #include "stdafx.h"
  13. #include "Wizard97.h"
  14. #include "Int1.h"
  15. #ifdef _DEBUG
  16. #define new DEBUG_NEW
  17. #undef THIS_FILE
  18. static char THIS_FILE[] = __FILE__;
  19. #endif
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CInterior1 property page
  22. IMPLEMENT_DYNCREATE(CInterior1, CResizablePageEx)
  23. CInterior1::CInterior1() : CResizablePageEx(CInterior1::IDD, 0, IDS_HEADERTITLE, IDS_HEADERSUBTITLE)
  24. {
  25. //{{AFX_DATA_INIT(CInterior1)
  26. // NOTE: the ClassWizard will add member initialization here
  27. //}}AFX_DATA_INIT
  28. //m_strHeaderTitle = "Setup Page (Test)";
  29. //m_psp.dwFlags |= PSP_HIDEHEADER;
  30. }
  31. CInterior1::~CInterior1()
  32. {
  33. }
  34. void CInterior1::DoDataExchange(CDataExchange* pDX)
  35. {
  36. CResizablePageEx::DoDataExchange(pDX);
  37. //{{AFX_DATA_MAP(CInterior1)
  38. // NOTE: the ClassWizard will add DDX and DDV calls here
  39. //}}AFX_DATA_MAP
  40. }
  41. BEGIN_MESSAGE_MAP(CInterior1, CResizablePageEx)
  42. //{{AFX_MSG_MAP(CInterior1)
  43. //}}AFX_MSG_MAP
  44. END_MESSAGE_MAP()
  45. /////////////////////////////////////////////////////////////////////////////
  46. // CInterior1 message handlers
  47. BOOL CInterior1::OnSetActive()
  48. {
  49. CPropertySheet* pSheet = (CPropertySheet*)GetParent();
  50. ASSERT_KINDOF(CPropertySheet, pSheet);
  51. pSheet->SetWizardButtons( PSWIZB_BACK | PSWIZB_NEXT);
  52. return CResizablePageEx::OnSetActive();
  53. }
  54. BOOL CInterior1::OnInitDialog()
  55. {
  56. CResizablePageEx::OnInitDialog();
  57. AddAnchor(IDC_STATIC_TITLE, TOP_LEFT, TOP_RIGHT);
  58. AddAnchor(IDC_LIST1, TOP_LEFT, BOTTOM_RIGHT);
  59. AddAnchor(IDC_GROUP1, TOP_RIGHT, BOTTOM_RIGHT);
  60. AddAnchor(IDC_BUTTON1, BOTTOM_RIGHT);
  61. AddAnchor(IDC_STATIC1, BOTTOM_LEFT, BOTTOM_CENTER);
  62. AddAnchor(IDC_STATIC2, BOTTOM_CENTER, BOTTOM_RIGHT);
  63. AddAnchor(IDC_STATIC3, TOP_LEFT);
  64. return TRUE; // return TRUE unless you set the focus to a control
  65. // EXCEPTION: OCX Property Pages should return FALSE
  66. }