資源簡介
界面精美的MFC對話框 科學計算器 實現了加減乘除乘方括號混合運算 顯示歷史計算 還有許多功能等待開發 謝謝下載 僅供學習交流

代碼片段和文件信息
//?caculator1.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“caculator1.h“
#include?“caculator1Dlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCaculator1App
BEGIN_MESSAGE_MAP(CCaculator1App?CWinApp)
//{{AFX_MSG_MAP(CCaculator1App)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CCaculator1App?construction
CCaculator1App::CCaculator1App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCaculator1App?object
CCaculator1App?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CCaculator1App?initialization
BOOL?CCaculator1App::InitInstance()
{
AfxEnableControlContainer();
????
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
????//--------------------------------------------------
//For?AppFace
//Line?1???load?the?skin
SkinStart(_T(“res\\macosx_af.urf“)WINDOW_TYPE_VC““GTP_LOAD_FILENULLNULL);
//--------------------------------------------------
CCaculator1Dlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//--------------------------------------------------
//For?AppFace
//Line?2???cleanup
SkinRemove()?;
//--------------------------------------------------
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2012-12-02?13:42??caculator1\
?????文件???????18918??2011-03-30?09:51??caculator1\AppFace.h
?????目錄???????????0??2012-12-02?13:42??caculator1\Debug\
?????文件??????105615??2012-12-02?01:15??caculator1\Debug\StdAfx.obj
?????文件?????1376328??2012-12-02?01:15??caculator1\Debug\StdAfx.sbr
?????文件??????724992??2012-01-20?10:36??caculator1\Debug\appface.dll
?????文件??????733184??2012-01-20?10:36??caculator1\Debug\appfaceu.dll
?????文件?????5112832??2012-12-02?13:32??caculator1\Debug\caculator1.bsc
?????文件??????360518??2012-12-02?13:32??caculator1\Debug\caculator1.exe
?????文件??????416976??2012-12-02?13:32??caculator1\Debug\caculator1.ilk
?????文件???????15182??2012-12-02?13:25??caculator1\Debug\caculator1.obj
?????文件?????7219460??2012-12-02?01:15??caculator1\Debug\caculator1.pch
?????文件??????435200??2012-12-02?13:32??caculator1\Debug\caculator1.pdb
?????文件??????199104??2012-12-02?13:30??caculator1\Debug\caculator1.res
?????文件???????????0??2012-12-02?13:25??caculator1\Debug\caculator1.sbr
?????文件??????100012??2012-12-02?13:32??caculator1\Debug\caculator1Dlg.obj
?????文件???????????0??2012-12-02?13:32??caculator1\Debug\caculator1Dlg.sbr
?????文件??????246784??2012-12-02?13:41??caculator1\Debug\vc60.idb
?????文件??????471040??2012-12-02?13:32??caculator1\Debug\vc60.pdb
?????文件????????3651??2012-12-01?00:22??caculator1\ReadMe.txt
?????文件?????????212??2012-12-01?00:22??caculator1\StdAfx.cpp
?????文件????????1074??2012-12-02?01:15??caculator1\StdAfx.h
?????文件????????3710??2007-12-18?23:46??caculator1\appface.lib
?????文件????????3734??2007-12-18?23:47??caculator1\appfaceu.lib
?????文件??????233088??2012-12-02?13:30??caculator1\caculator1.aps
?????文件????????2818??2012-12-02?13:42??caculator1\caculator1.clw
?????文件????????2529??2012-12-02?13:25??caculator1\caculator1.cpp
?????文件????????4457??2012-12-02?02:22??caculator1\caculator1.dsp
?????文件?????????545??2012-12-01?00:22??caculator1\caculator1.dsw
?????文件????????1368??2012-12-01?00:22??caculator1\caculator1.h
?????文件???????74752??2012-12-02?13:42??caculator1\caculator1.ncb
............此處省略19個文件信息
評論
共有 條評論