Int2.cpp 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // Int2.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 "Int2.h"
  15. #ifdef _DEBUG
  16. #define new DEBUG_NEW
  17. #undef THIS_FILE
  18. static char THIS_FILE[] = __FILE__;
  19. #endif
  20. /////////////////////////////////////////////////////////////////////////////
  21. // Interior2 property page
  22. IMPLEMENT_DYNCREATE(CInterior2, CResizablePageEx)
  23. CInterior2::CInterior2()
  24. : CResizablePageEx(CInterior2::IDD, 0, IDS_HEADERTITLE, IDS_HEADERSUBTITLE)
  25. {
  26. //{{AFX_DATA_INIT(CInterior2)
  27. // NOTE: the ClassWizard will add member initialization here
  28. //}}AFX_DATA_INIT
  29. }
  30. CInterior2::~CInterior2()
  31. {
  32. }
  33. void CInterior2::DoDataExchange(CDataExchange* pDX)
  34. {
  35. CResizablePageEx::DoDataExchange(pDX);
  36. //{{AFX_DATA_MAP(CInterior2)
  37. // NOTE: the ClassWizard will add DDX and DDV calls here
  38. //}}AFX_DATA_MAP
  39. }
  40. BEGIN_MESSAGE_MAP(CInterior2, CResizablePageEx)
  41. //{{AFX_MSG_MAP(CInterior2)
  42. //}}AFX_MSG_MAP
  43. END_MESSAGE_MAP()
  44. /////////////////////////////////////////////////////////////////////////////
  45. // CInterior2 message handlers
  46. BOOL CInterior2::OnSetActive()
  47. {
  48. CPropertySheet* pSheet = (CPropertySheet*)GetParent();
  49. ASSERT_KINDOF(CPropertySheet, pSheet);
  50. pSheet->SetWizardButtons( PSWIZB_BACK | PSWIZB_NEXT);
  51. return CResizablePageEx::OnSetActive();
  52. }
  53. BOOL CInterior2::OnInitDialog()
  54. {
  55. CResizablePageEx::OnInitDialog();
  56. AddAnchor(IDC_RADIO1, TOP_LEFT, TOP_RIGHT);
  57. AddAnchor(IDC_STATIC1, TOP_LEFT, MIDDLE_RIGHT);
  58. AddAnchor(IDC_RADIO2, MIDDLE_LEFT, MIDDLE_RIGHT);
  59. AddAnchor(IDC_STATIC2, MIDDLE_LEFT, BOTTOM_RIGHT);
  60. AddAnchor(IDC_STATIC3, TOP_LEFT);
  61. return TRUE; // return TRUE unless you set the focus to a control
  62. // EXCEPTION: OCX Property Pages should return FALSE
  63. }