|
// HelpSheetDlg.cpp : implementation file
//
#include "stdafx.h"
#include "VisualCalc.h"
#include "HelpSheetDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNAMIC(CHelpSheetDlg, CPropertySheet)
// Constructor
CHelpSheetDlg::CHelpSheetDlg(UINT nIDCaption, CWnd* pParentWnd /*=NULL*/, UINT iSelectPage /*=0*/)
:CPropertySheet(nIDCaption, pParentWnd, iSelectPage) {
AddHelpPages();
}
// Constructor
CHelpSheetDlg::CHelpSheetDlg(LPCTSTR pszCaption, CWnd* pParentWnd /*=NULL*/, UINT iSelectPage /*=0*/)
:CPropertySheet(pszCaption, pParentWnd, iSelectPage) {
AddHelpPages();
}
// Destructor
CHelpSheetDlg::~CHelpSheetDlg() {
}
BEGIN_MESSAGE_MAP(CHelpSheetDlg, CPropertySheet)
//{{AFX_MSG_MAP(CHelpSheetDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
// Adds CPropertyPages to the PropertySheet
void CHelpSheetDlg::AddHelpPages() {
m_hIcon = AfxGetApp()->LoadIcon(IDI_HELP);
m_psh.dwFlags |= PSP_USEHICON;
m_psh.hIcon = m_hIcon;
m_psh.dwFlags |= PSH_NOAPPLYNOW;
m_psh.dwFlags &= ~PSH_HASHELP;
this->AddPage(&m_FunctionsPage);
this->AddPage(&m_OperatorsPage);
this->AddPage(&m_ErrorCodesPage);
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.