home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************
- $Archive: $
- $Workfile: $
- $Author: $
- $Date: $
- $Revision: $
- *******************************************************************/
-
- #include "StdAfx.h"
- #include "resource.h"
- #include "MyPropertyPage4.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- // CMyPropertyPage4 property page
-
- IMPLEMENT_DYNCREATE(CMyPropertyPage4, CPropertyPage)
-
- CMyPropertyPage4::CMyPropertyPage4() : CPropertyPage(CMyPropertyPage4::IDD)
- {
- //{{AFX_DATA_INIT(CMyPropertyPage4)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
-
- CMyPropertyPage4::~CMyPropertyPage4()
- {
- }
-
- void CMyPropertyPage4::DoDataExchange(CDataExchange* pDX)
- {
- CPropertyPage::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CMyPropertyPage4)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
-
- BEGIN_MESSAGE_MAP(CMyPropertyPage4, CPropertyPage)
- //{{AFX_MSG_MAP(CMyPropertyPage4)
- ON_BN_CLICKED(IDC_BUTTON4, OnButton4)
- ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
- ON_BN_CLICKED(IDC_BUTTON3, OnButton3)
- ON_BN_CLICKED(IDC_BUTTON5, OnButton5)
- ON_BN_CLICKED(IDC_BUTTON6, OnButton6)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
-
- /////////////////////////////////////////////////////////////////////////////
- // CMyPropertyPage4 message handlers
-
- void CMyPropertyPage4::OnButton4()
- {
- CFileDialog dlg( TRUE );
- dlg.m_ofn.Flags |= OFN_SHOWHELP;
- dlg.DoModal();
- }
-
- void CMyPropertyPage4::OnButton1()
- {
- CColorDialog dlg;
- dlg.m_cc.Flags |= CC_SHOWHELP;
- dlg.DoModal();
- }
-
- void CMyPropertyPage4::OnButton3()
- {
- CFontDialog dlg;
- dlg.m_cf.Flags |= CF_SHOWHELP;
- dlg.DoModal();
- }
-
- void CMyPropertyPage4::OnButton5()
- {
- CPageSetupDialog dlg;
- dlg.m_psd.Flags |= PSD_SHOWHELP;
- dlg.DoModal();
- }
-
- void CMyPropertyPage4::OnButton6()
- {
- CPrintDialog dlg( FALSE );
- dlg.m_pd.Flags |= PD_SHOWHELP;
- dlg.DoModal();
- }
-