資源簡介
VC++圍棋源代碼VC++圍棋源代碼VC++圍棋源代碼
代碼片段和文件信息
//?ChessRoad.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“ChessRoad.h“
#include?“MainFrm.h“
#include?“ChessRoadDoc.h“
#include?“ChessRoadView.h“
#include?“dlgSYS.h“
#include?“DealPassword.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CChessRoadApp
BEGIN_MESSAGE_MAP(CChessRoadApp?CWinApp)
//{{AFX_MSG_MAP(CChessRoadApp)
ON_COMMAND(ID_APP_ABOUT?OnAppAbout)
ON_COMMAND(ID_MENUSYSTEMSET?OnMenuSystemSet)
//}}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()
/////////////////////////////////////////////////////////////////////////////
//?CChessRoadApp?construction
CChessRoadApp::CChessRoadApp()
{
m_OPMain?=?0;
m_fireCC?=?0;
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CChessRoadApp?object
CChessRoadApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CChessRoadApp?initialization
BOOL?CChessRoadApp::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.
????CDealPassword???x;
????x.InitPwCheck();
#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(CChessRoadDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CChessRoadView));
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->SetWindowText(TEXT(“弈道“));
m_pMainWnd->ShowWindow(SW_SHOWMAXIMIZED);
m_pMainWnd
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????9600??2005-01-26?23:00??ChessRoadOK\WeiQi.cpp
?????文件???????1429??2005-01-25?19:19??ChessRoadOK\SGFFile.h
?????文件??????51712??2005-02-18?09:55??ChessRoadOK\ChessRoad.opt
?????文件???????4383??2005-01-16?00:21??ChessRoadOK\ReadMe.txt
?????文件???????6818??2005-02-11?11:06??ChessRoadOK\ChessRoad.dsp
?????文件???????1779??2005-01-26?21:43??ChessRoadOK\dlgInfo.cpp
?????文件???????1054??2005-01-16?00:21??ChessRoadOK\StdAfx.h
?????文件????????211??2005-01-16?00:21??ChessRoadOK\StdAfx.cpp
?????文件??????46871??2005-01-27?23:11??ChessRoadOK\SGFFile.cpp
?????文件???????1594??2005-02-11?12:33??ChessRoadOK\RegProgram.h
?????文件???????1888??2005-02-11?13:32??ChessRoadOK\MainFrm.h
?????文件???????1355??2005-01-23?17:56??ChessRoadOK\dlgDOLSelect.h
?????文件???????1287??2005-01-16?21:28??ChessRoadOK\dlgMiaoShouIndex.h
?????文件???????1252??2005-01-17?10:54??ChessRoadOK\dlgQiPuIndex.h
?????文件???????1072??2005-01-16?21:28??ChessRoadOK\dlgMiaoShouIndex.cpp
?????文件????????541??2005-01-16?00:21??ChessRoadOK\ChessRoad.dsw
?????文件??????20810??2005-02-11?13:26??ChessRoadOK\ChessRoad.rc
?????文件???????7890??2005-02-18?09:26??ChessRoadOK\ChessRoad.clw
?????文件???????1275??2005-01-17?12:00??ChessRoadOK\dlgQiPuComment.h
?????文件???????1039??2005-01-17?10:54??ChessRoadOK\dlgQiPuIndex.cpp
?????文件???????1118??2005-01-20?10:07??ChessRoadOK\dlgTrySet.cpp
?????文件???????1021??2005-01-17?12:00??ChessRoadOK\dlgQiPuComment.cpp
?????文件???????1239??2005-01-20?10:07??ChessRoadOK\dlgTrySet.h
?????文件???????1192??2005-01-26?09:17??ChessRoadOK\dlgSYS.h
?????文件???????5804??2005-01-28?12:30??ChessRoadOK\ChessRoadView.h
?????文件???????1526??2005-02-18?09:52??ChessRoadOK\ChessRoad.plg
?????文件???????3499??2005-01-23?18:06??ChessRoadOK\dlgDOLSelect.cpp
?????文件???????1252??2005-01-26?21:35??ChessRoadOK\dlgInfo.h
?????文件????????970??2005-01-26?09:17??ChessRoadOK\dlgSYS.cpp
?????文件???????1593??2005-01-16?01:04??ChessRoadOK\ChessRoadDoc.h
............此處省略29個(gè)文件信息
評(píng)論
共有 條評(píng)論