1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
|
// IntroductionPP.cpp : implementation file
//
#include "stdafx.h"
#include "AceServerControlPanel.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CIntroductionPP property page
IMPLEMENT_DYNCREATE(CIntroductionPP, CPropertyPage)
CIntroductionPP::CIntroductionPP() : CPropertyPage(CIntroductionPP::IDD)
{
//{{AFX_DATA_INIT(CIntroductionPP)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
CIntroductionPP::~CIntroductionPP()
{
}
void CIntroductionPP::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CIntroductionPP)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CIntroductionPP, CPropertyPage)
//{{AFX_MSG_MAP(CIntroductionPP)
ON_WM_PAINT()
ON_WM_HELPINFO()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CIntroductionPP message handlers
BOOL CIntroductionPP::OnInitDialog()
{
CPropertyPage::OnInitDialog();
m_fntTitle.CreateFont(TITLE_FONT_SIZE,0,0,0,FW_BOLD,FALSE,FALSE,
0,ANSI_CHARSET, OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,
DEFAULT_QUALITY,DEFAULT_PITCH | FF_DONTCARE,"MS Sans Serif") ;
m_fntCopyright.CreateFont(MESSAGE_FONT_SIZE,0,0,0,FW_MEDIUM,TRUE,FALSE,
0,ANSI_CHARSET, OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,
DEFAULT_QUALITY,DEFAULT_PITCH | FF_DONTCARE,"MS Sans Serif") ;
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CIntroductionPP::OnPaint()
{
CPaintDC dc(this); // device context for painting
CConfigPS* lpConfigPS = (CConfigPS*)GetParent() ;
CStatic* pString = (CStatic*)GetDlgItem(IDC_TITLE) ;
ASSERT_VALID(pString) ;
pString->SetFont(&m_fntTitle) ;
pString = (CStatic*)GetDlgItem(IDC_COPYRIGHT) ;
ASSERT_VALID(pString) ;
pString->SetFont(&m_fntCopyright) ;
pString = (CStatic*)GetDlgItem(IDC_HELP_MESSAGE) ;
ASSERT_VALID(pString) ;
pString->SetFont(&lpConfigPS->m_fntMessage) ;
CString str ;
str.LoadString(IDS_TITLE) ;
SetDlgItemText(IDC_TITLE, str) ;
str.LoadString(IDS_COPYRIGHT) ;
SetDlgItemText(IDC_COPYRIGHT, str) ;
str.LoadString(IDS_HELP_MESSAGE) ;
SetDlgItemText(IDC_HELP_MESSAGE, str) ;
}
BOOL CIntroductionPP::OnSetActive()
{
// Display the Back & Finish Button
CPropertySheet* pParent = (CPropertySheet*)GetParent() ;
pParent->SetWizardButtons(PSWIZB_NEXT) ;
return CPropertyPage::OnSetActive();
}
BOOL CIntroductionPP::OnHelpInfo(HELPINFO* pHelpInfo)
{
return win32FileCall( "Introduction.html" ) ;
}
|