home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 November / CMCD1104.ISO / Software / Shareware / Programare / skincraft / SkinCrafter_v1.4.12_Demo.msi / _49E29CB9A65AABBF653C1037E1AA74B6 / _543B944E3E62492C9B9E1B3B2E3384DC < prev    next >
Encoding:
Text File  |  2004-06-29  |  2.0 KB  |  90 lines

  1. /******************************************************************
  2. $Archive: $
  3. $Workfile: $
  4. $Author: $
  5. $Date: $
  6. $Revision: $
  7. *******************************************************************/
  8.  
  9. #include "StdAfx.h"
  10. #include "resource.h"
  11. #include "MyPropertyPage4.h"
  12.  
  13. #ifdef _DEBUG
  14. #define new DEBUG_NEW
  15. #undef THIS_FILE
  16. static char THIS_FILE[] = __FILE__;
  17. #endif
  18.  
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CMyPropertyPage4 property page
  21.  
  22. IMPLEMENT_DYNCREATE(CMyPropertyPage4, CPropertyPage)
  23.  
  24. CMyPropertyPage4::CMyPropertyPage4() : CPropertyPage(CMyPropertyPage4::IDD)
  25. {
  26.     //{{AFX_DATA_INIT(CMyPropertyPage4)
  27.         // NOTE: the ClassWizard will add member initialization here
  28.     //}}AFX_DATA_INIT
  29. }
  30.  
  31. CMyPropertyPage4::~CMyPropertyPage4()
  32. {
  33. }
  34.  
  35. void CMyPropertyPage4::DoDataExchange(CDataExchange* pDX)
  36. {
  37.     CPropertyPage::DoDataExchange(pDX);
  38.     //{{AFX_DATA_MAP(CMyPropertyPage4)
  39.         // NOTE: the ClassWizard will add DDX and DDV calls here
  40.     //}}AFX_DATA_MAP
  41. }
  42.  
  43. BEGIN_MESSAGE_MAP(CMyPropertyPage4, CPropertyPage)
  44.     //{{AFX_MSG_MAP(CMyPropertyPage4)
  45.     ON_BN_CLICKED(IDC_BUTTON4, OnButton4)
  46.     ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
  47.     ON_BN_CLICKED(IDC_BUTTON3, OnButton3)
  48.     ON_BN_CLICKED(IDC_BUTTON5, OnButton5)
  49.     ON_BN_CLICKED(IDC_BUTTON6, OnButton6)
  50.     //}}AFX_MSG_MAP
  51. END_MESSAGE_MAP()
  52.  
  53. /////////////////////////////////////////////////////////////////////////////
  54. // CMyPropertyPage4 message handlers
  55.  
  56. void CMyPropertyPage4::OnButton4() 
  57. {
  58.     CFileDialog dlg( TRUE );
  59.     dlg.m_ofn.Flags |= OFN_SHOWHELP;
  60.     dlg.DoModal();    
  61. }
  62.  
  63. void CMyPropertyPage4::OnButton1() 
  64. {
  65.     CColorDialog dlg;
  66.     dlg.m_cc.Flags |= CC_SHOWHELP;
  67.     dlg.DoModal();
  68. }
  69.  
  70. void CMyPropertyPage4::OnButton3() 
  71. {
  72.     CFontDialog dlg;
  73.     dlg.m_cf.Flags |= CF_SHOWHELP;
  74.     dlg.DoModal();
  75. }
  76.  
  77. void CMyPropertyPage4::OnButton5() 
  78. {
  79.     CPageSetupDialog dlg;
  80.     dlg.m_psd.Flags |= PSD_SHOWHELP;
  81.     dlg.DoModal();
  82. }
  83.  
  84. void CMyPropertyPage4::OnButton6() 
  85. {
  86.     CPrintDialog dlg( FALSE );
  87.     dlg.m_pd.Flags |= PD_SHOWHELP;
  88.     dlg.DoModal();
  89. }
  90.