123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- // 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();
- }
|