// SystemFunctionList.cpp : implementation file // #include "stdafx.h" #include "icredit.h" #include "SystemFunctionList.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CSystemFunctionList dialog CSystemFunctionList::CSystemFunctionList(CWnd* pParent /*=NULL*/) : CDialog(CSystemFunctionList::IDD, pParent) { //{{AFX_DATA_INIT(CSystemFunctionList) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT } void CSystemFunctionList::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CSystemFunctionList) DDX_Control(pDX, IDC_FUNCTIONLIST, m_ctrlFunctionList); //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CSystemFunctionList, CDialog) //{{AFX_MSG_MAP(CSystemFunctionList) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CSystemFunctionList message handlers BOOL CSystemFunctionList::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here const LPSTR NzbFunctionName[] = { "Array", "Asc", "Atn", "CBool", "CByte", "CCur", "CDate", "CDbl", "Chr", "CInt", "CLng", "Cos", "CreateObject", "CSng", "CStr", "Date", "DateAdd", "DateDiff", "DatePart", "DateSerial", "DateValue", "Day", "Exp", "Filter", "Fix", "FormatCurrency", "FormatDateTime", "FormatNumber", "FormatPercent", "GetObject", "Hex", "Hour", "InputBox", "InStr", "InStrRev", "Int", "IsArray", "IsDate", "IsEmpty", "IsNull", "IsNumeric", "IsObject", "Join", "LBound", "LCase", "Left", "Len", "LoadPicture", "Log", "LTrim", "Mid", "Minute", "Month", "MonthName", "MsgBox", "Now", "Oct", "Replace", "RGB", "Right", "Rnd", "Round", "RTrim", "Second", "Sgn", "Sin", "Sleeps", "Space", "Split", "Sqr", "StrComp", "StrReverse", "String", "Tan", "Time", "TimeSerial", "TimeValue", "Trim", "TypeName", "UBound", "UCase", "VarType", "Weekday", "WeekdayName", "Year" }; for(int i=0;i<85;i++) m_ctrlFunctionList.AddString(NzbFunctionName[i]); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } void CSystemFunctionList::OnOK() { // TODO: Add extra validation here m_ctrlFunctionList.GetText(m_ctrlFunctionList.GetCurSel(),m_strFunction); CDialog::OnOK(); }