|
/* ErrorCodesPage.cpp
*
* Copyright (c) 2004-2006 by toxcct. All rights reserved.
* Consult your license regarding permissions and restrictions.
*/
// ErrorCodesPage.cpp : implementation file
//
#include "stdafx.h"
#include "VisualCalc.h"
#include "ErrorCodesPage.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CErrorCodesPage, CPropertyPage)
// Default constructor
CErrorCodesPage::CErrorCodesPage() : CPropertyPage(CErrorCodesPage::IDD) {
//{{AFX_DATA_INIT(CErrorCodesPage)
//}}AFX_DATA_INIT
CString strCaption;
strCaption.LoadString(IDS_HELP_ERROR_CODES);
this->m_psp.dwFlags &= ~PSP_HASHELP;
this->m_psp.dwFlags |= PSP_USETITLE;
this->m_psp.pszTitle = "Error codes";
}
// Destructor
CErrorCodesPage::~CErrorCodesPage() {
}
// For exchange between control and data members
void CErrorCodesPage::DoDataExchange(CDataExchange* pDX) {
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CErrorCodesPage)
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CErrorCodesPage, CPropertyPage)
//{{AFX_MSG_MAP(CErrorCodesPage)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BOOL CErrorCodesPage::OnInitDialog() {
CPropertyPage::OnInitDialog();
m_psErrorCodes = (CStatic*)GetDlgItem(IDC_ERRORS_CODES);
m_psErrorDescriptions = (CStatic*)GetDlgItem(IDC_ERRORS_DESCRIPTIONS);
m_psSyntax = (CStatic*)GetDlgItem(IDC_ERRORS_SYNTAX);
m_psMathematic = (CStatic*)GetDlgItem(IDC_ERRORS_MATHEMATIC);
m_psFunctions = (CStatic*)GetDlgItem(IDC_ERRORS_FUNCTIONS);
m_psParameters = (CStatic*)GetDlgItem(IDC_ERRORS_PARAMETERS);
m_psVariables = (CStatic*)GetDlgItem(IDC_ERRORS_VARIABLES);
m_psDomain = (CStatic*)GetDlgItem(IDC_ERRORS_DOMAIN);
m_psParser = (CStatic*)GetDlgItem(IDC_ERRORS_PARSER);
m_psError1001 = (CStatic*)GetDlgItem(IDC_ERRORS_1001);
m_psError1002 = (CStatic*)GetDlgItem(IDC_ERRORS_1002);
m_psError1003 = (CStatic*)GetDlgItem(IDC_ERRORS_1003);
m_psError1004 = (CStatic*)GetDlgItem(IDC_ERRORS_1004);
m_psError2001 = (CStatic*)GetDlgItem(IDC_ERRORS_2001);
m_psError2002 = (CStatic*)GetDlgItem(IDC_ERRORS_2002);
m_psError2003 = (CStatic*)GetDlgItem(IDC_ERRORS_2003);
m_psError2004 = (CStatic*)GetDlgItem(IDC_ERRORS_2004);
m_psError2005 = (CStatic*)GetDlgItem(IDC_ERRORS_2005);
m_psError2006 = (CStatic*)GetDlgItem(IDC_ERRORS_2006);
m_psError2007 = (CStatic*)GetDlgItem(IDC_ERRORS_2007);
m_psError2008 = (CStatic*)GetDlgItem(IDC_ERRORS_2008);
m_psError3001 = (CStatic*)GetDlgItem(IDC_ERRORS_3001);
m_psError3002 = (CStatic*)GetDlgItem(IDC_ERRORS_3002);
m_psError3003 = (CStatic*)GetDlgItem(IDC_ERRORS_3003);
m_psError4001 = (CStatic*)GetDlgItem(IDC_ERRORS_4001);
m_psError4002 = (CStatic*)GetDlgItem(IDC_ERRORS_4002);
m_psError5001 = (CStatic*)GetDlgItem(IDC_ERRORS_5001);
m_psError5002 = (CStatic*)GetDlgItem(IDC_ERRORS_5002);
m_psError5003 = (CStatic*)GetDlgItem(IDC_ERRORS_5003);
m_psError6001 = (CStatic*)GetDlgItem(IDC_ERRORS_6001);
m_psError6002 = (CStatic*)GetDlgItem(IDC_ERRORS_6002);
m_psError6003 = (CStatic*)GetDlgItem(IDC_ERRORS_6003);
m_psError6004 = (CStatic*)GetDlgItem(IDC_ERRORS_6004);
m_psError6005 = (CStatic*)GetDlgItem(IDC_ERRORS_6005);
m_psError9001 = (CStatic*)GetDlgItem(IDC_ERRORS_9001);
m_psError9009 = (CStatic*)GetDlgItem(IDC_ERRORS_9009);
CString strControlCaption;
strControlCaption.LoadString(IDS_HELP_ERRORS_CODES);
m_psErrorCodes->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_DESCRIPTIONS);
m_psErrorDescriptions->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_SYNTAX);
m_psSyntax->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_MATHEMATIC);
m_psMathematic->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_FUNCTIONS);
m_psFunctions->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_PARAMETERS);
m_psParameters->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_VARIABLES);
m_psVariables->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_DOMAIN);
m_psDomain->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_PARSER);
m_psParser->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_1001);
m_psError1001->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_1002);
m_psError1002->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_1003);
m_psError1003->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_1004);
m_psError1004->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_2001);
m_psError2001->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_2002);
m_psError2002->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_2003);
m_psError2003->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_2004);
m_psError2004->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_2005);
m_psError2005->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_2006);
m_psError2006->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_2007);
m_psError2007->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_2008);
m_psError2008->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_3001);
m_psError3001->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_3002);
m_psError3002->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_3003);
m_psError3003->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_4001);
m_psError4001->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_4002);
m_psError4002->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_5001);
m_psError5001->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_5002);
m_psError5002->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_5003);
m_psError5003->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_6001);
m_psError6001->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_6002);
m_psError6002->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_6003);
m_psError6003->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_6004);
m_psError6004->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_6005);
m_psError6005->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_9001);
m_psError9001->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERRORS_9009);
m_psError9009->SetWindowText(strControlCaption);
strControlCaption.LoadString(IDS_HELP_ERROR_CODES);
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.