home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / general / snapvw / bkfstpg.cpp next >
C/C++ Source or Header  |  1998-03-26  |  2KB  |  76 lines

  1. // BkfstPg.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.  
  13. #include "stdafx.h"
  14. #include "snapvw.h"
  15. #include "BkfstPg.h"
  16.  
  17. #ifdef _DEBUG
  18. #define new DEBUG_NEW
  19. #undef THIS_FILE
  20. static char THIS_FILE[] = __FILE__;
  21. #endif
  22.  
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CBkfstPage property page
  25.  
  26. IMPLEMENT_DYNCREATE(CBkfstPage, CPropertyPage)
  27.  
  28. CBkfstPage::CBkfstPage() : CPropertyPage(CBkfstPage::IDD)
  29. {
  30.     //{{AFX_DATA_INIT(CBkfstPage)
  31.         // NOTE: the ClassWizard will add member initialization here
  32.     //}}AFX_DATA_INIT
  33. }
  34.  
  35. CBkfstPage::~CBkfstPage()
  36. {
  37. }
  38.  
  39. void CBkfstPage::DoDataExchange(CDataExchange* pDX)
  40. {
  41.     CPropertyPage::DoDataExchange(pDX);
  42.     //{{AFX_DATA_MAP(CBkfstPage)
  43.         // NOTE: the ClassWizard will add DDX and DDV calls here
  44.     //}}AFX_DATA_MAP
  45. }
  46.  
  47.  
  48. BEGIN_MESSAGE_MAP(CBkfstPage, CPropertyPage)
  49.     //{{AFX_MSG_MAP(CBkfstPage)
  50.     //}}AFX_MSG_MAP
  51. END_MESSAGE_MAP()
  52.  
  53. /////////////////////////////////////////////////////////////////////////////
  54. // CBkfstPage message handlers
  55.  
  56. BOOL CBkfstPage::OnInitDialog()
  57. {
  58.     CPropertyPage::OnInitDialog();
  59.  
  60.     CButton* pBevButton;
  61.     pBevButton = (CButton*) GetDlgItem(IDC_HOT_TEA);
  62.     pBevButton->SetCheck(1);
  63.  
  64.     CButton* pStyleButton;
  65.     pStyleButton = (CButton*) GetDlgItem(IDC_CONTINENTAL2);
  66.     pStyleButton->SetCheck(1);
  67.  
  68.     CButton* pNewsButton;
  69.     pNewsButton = (CButton*) GetDlgItem(IDC_FINANCE);
  70.     pNewsButton->SetCheck(1);
  71.  
  72.  
  73.     return TRUE;  // return TRUE unless you set the focus to a control
  74.                   // EXCEPTION: OCX Property Pages should return FALSE
  75. }
  76.