|
// OperatorsPage.cpp : implementation file
//
#include "stdafx.h"
#include "VisualCalc.h"
#include "OperatorsPage.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(COperatorsPage, CPropertyPage)
// Default constructor
COperatorsPage::COperatorsPage() : CPropertyPage(COperatorsPage::IDD) {
//{{AFX_DATA_INIT(COperatorsPage)
//}}AFX_DATA_INIT
CString strCaption;
strCaption.LoadString(IDS_HELP_OPERATORS);
this->m_psp.dwFlags &= ~PSP_HASHELP;
this->m_psp.dwFlags |= PSP_USETITLE;
this->m_psp.pszTitle = "Operators";
}
// Destructor
COperatorsPage::~COperatorsPage() {
}
// For exchanges between controls and data members
void COperatorsPage::DoDataExchange(CDataExchange* pDX) {
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(COperatorsPage)
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(COperatorsPage, CPropertyPage)
//{{AFX_MSG_MAP(COperatorsPage)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BOOL COperatorsPage::OnInitDialog() {
CPropertyPage::OnInitDialog();
m_psOperatorsAvailable = (CStatic*)GetDlgItem(IDC_OPERS_AVAILABLE_STATIC);
m_psOperatorsUses = (CStatic*)GetDlgItem(IDC_OPERS_USES_STATIC);
m_psDefAddition = (CStatic*)GetDlgItem(IDC_OPERS_ADDITION_DEF_STATIC);
m_psDefSubtraction = (CStatic*)GetDlgItem(IDC_OPERS_SUBTRACTION_DEF_STATIC);
m_psDefMultiplication = (CStatic*)GetDlgItem(IDC_OPERS_MULTIPLICATION_DEF_STATIC);
m_psDefDivision = (CStatic*)GetDlgItem(IDC_OPERS_DIVISION_DEF_STATIC);
m_psDefPower = (CStatic*)GetDlgItem(IDC_OPERS_POWER_DEF_STATIC);
m_psDefModulus = (CStatic*)GetDlgItem(IDC_OPERS_MODULUS_DEF_STATIC);
m_psDefParenthesis = (CStatic*)GetDlgItem(IDC_OPERS_PARENTHESIS_DEF_STATIC);
m_psDefUnaryPlus = (CStatic*)GetDlgItem(IDC_OPERS_UNARYPLUS_DEF_STATIC);
m_psDefUnaryMinus = (CStatic*)GetDlgItem(IDC_OPERS_UNARYMINUS_DEF_STATIC);
m_psDefAssignement = (CStatic*)GetDlgItem(IDC_OPERS_ASSIGNEMENT_DEF_STATIC);
m_psDefFactorial = (CStatic*)GetDlgItem(IDC_OPERS_FACTORIAL_DEF_STATIC);
m_psDefDegToRad = (CStatic*)GetDlgItem(IDC_OPERS_DEGTORAD_DEF_STATIC);
CString strControlCaption;
strControlCaption.LoadString(IDS_HELP_OPERS_AVAILABLE);
m_psOperatorsAvailable->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_OPERS_USES);
m_psOperatorsUses->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_OPERS_DEF_ADDITION);
m_psDefAddition->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_OPERS_DEF_SUBTRACTION);
m_psDefSubtraction->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_OPERS_DEF_MULTIPLICATION);
m_psDefMultiplication->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_OPERS_DEF_DIVISION);
m_psDefDivision->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_OPERS_DEF_POWER);
m_psDefPower->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_OPERS_DEF_MODULUS);
m_psDefModulus->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_OPERS_DEF_PARENTHESIS);
m_psDefParenthesis->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_OPERS_DEF_UNARYPLUS);
m_psDefUnaryPlus->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_OPERS_DEF_UNARYMINUS);
m_psDefUnaryMinus->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_OPERS_DEF_ASSIGNEMENT);
m_psDefAssignement->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_OPERS_DEF_FACTORIAL);
m_psDefFactorial->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_OPERS_DEF_DEGTORAD);
m_psDefDegToRad->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_OPERATORS);
this->SetWindowText(strControlCaption);
return TRUE;
}
|
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.