資源簡介
用MFC寫的單文檔棋盤程序,可以記錄坐標數(shù)據(jù),詳細見幫助文檔

代碼片段和文件信息
//?Board.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Board.h“
#include?“MainFrm.h“
#include?“BoardDoc.h“
#include?“BoardView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CBoardApp
BEGIN_MESSAGE_MAP(CBoardApp?CWinApp)
//{{AFX_MSG_MAP(CBoardApp)
ON_COMMAND(ID_APP_ABOUT?OnAppAbout)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG_MAP
//?Standard?file?based?document?commands
ON_COMMAND(ID_FILE_NEW?CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?CWinApp::OnFileOpen)
//?Standard?print?setup?command
ON_COMMAND(ID_FILE_PRINT_SETUP?CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CBoardApp?construction
CBoardApp::CBoardApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CBoardApp?object
CBoardApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CBoardApp?initialization
BOOL?CBoardApp::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
//?Change?the?registry?key?under?which?our?settings?are?stored.
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization.
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));
LoadStdProfileSettings();??//?Load?standard?INI?file?options?(including?MRU)
//?Register?the?application‘s?document?templates.??Document?templates
//??serve?as?the?connection?between?documents?frame?windows?and?views.
CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CBoardDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CBoardView));
AddDocTemplate(pDocTemplate);
//?Parse?command?line?for?standard?shell?commands?DDE?file?open
CCommandLineInfo?cmdInfo;
ParseCommandLine(cmdInfo);
//?Dispatch?commands?specified?on?the?command?line
if?(!ProcessShellCommand(cmdInfo))
return?FALSE;
//?The?one?and?only?window?has?been?initialized?so?show?and?update?it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return?TRUE;
}
/////////
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????43556??2012-04-28?23:20??Board\Board.aps
?????文件???????1993??2012-04-28?23:22??Board\Board.clw
?????文件???????4597??2012-04-28?23:06??Board\Board.cpp
?????文件????????580??2012-04-28?23:21??Board\Board.dep
?????文件???????4534??2012-04-28?20:19??Board\Board.dsp
?????文件????????533??2012-04-28?20:19??Board\Board.dsw
?????文件???????1345??2012-04-28?20:19??Board\Board.h
?????文件???????6113??2012-04-28?23:21??Board\Board.mak
?????文件??????66560??2012-06-27?09:56??Board\Board.ncb
?????文件??????48640??2012-06-27?09:56??Board\Board.opt
?????文件????????969??2012-06-27?09:56??Board\Board.plg
?????文件??????10791??2012-04-28?23:20??Board\Board.rc
?????文件???????1722??2012-04-28?20:19??Board\BoardDoc.cpp
?????文件???????1464??2012-04-28?20:19??Board\BoardDoc.h
?????文件???????4565??2012-04-28?23:09??Board\BoardView.cpp
?????文件???????2051??2012-04-28?22:52??Board\BoardView.h
?????文件???????2503??2012-06-27?09:56??Board\MainFrm.cpp
?????文件???????1469??2012-04-28?21:26??Board\MainFrm.h
?????文件????????126??2012-05-06?07:34??Board\new.txt
?????文件???????4287??2012-04-28?20:19??Board\ReadMe.txt
?????文件???????1078??2012-04-28?20:19??Board\res\Board.ico
?????文件????????397??2012-04-28?20:19??Board\res\Board.rc2
?????文件???????1078??2012-04-28?20:19??Board\res\BoardDoc.ico
?????文件???????1078??2012-04-28?23:10??Board\res\Toolbar.bmp
?????文件????????637??2012-04-28?23:06??Board\resource.h
?????文件????????207??2012-04-28?20:19??Board\StdAfx.cpp
?????文件???????1054??2012-04-28?20:19??Board\StdAfx.h
?????目錄??????????0??2012-04-28?23:24??Board\res
?????目錄??????????0??2012-06-27?09:56??Board
-----------?---------??----------?-----??----
............此處省略2個文件信息
評論
共有 條評論