資源簡介
鐵路方面的程序總是沒人對外公開一下,我把最簡單的鐵路聯鎖軟件界面開發發出來,希望有更多的人能提供鐵路的源代碼。該程序繪制了鐵路站場、信號機變色、左鍵、右鍵功能都有部份講解。

代碼片段和文件信息
//?abc1.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“abc1.h“
#include?“MainFrm.h“
#include?“abc1Doc.h“
#include?“abc1View.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CAbc1App
BEGIN_MESSAGE_MAP(CAbc1App?CWinApp)
//{{AFX_MSG_MAP(CAbc1App)
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()
/////////////////////////////////////////////////////////////////////////////
//?CAbc1App?construction
CAbc1App::CAbc1App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CAbc1App?object
CAbc1App?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CAbc1App?initialization
BOOL?CAbc1App::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(CAbc1Doc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CAbc1View));
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;
}
/////////////////////////
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????44756??2008-07-16?18:45??鐵路??聯鎖軟件界面開發(信號平面圖)\abc1.aps
?????文件???????2528??2008-07-23?10:48??鐵路??聯鎖軟件界面開發(信號平面圖)\abc1.clw
?????文件???????4379??2008-07-12?18:02??鐵路??聯鎖軟件界面開發(信號平面圖)\abc1.cpp
?????文件???????4513??2008-07-12?17:48??鐵路??聯鎖軟件界面開發(信號平面圖)\abc1.dsp
?????文件????????533??2008-07-12?17:48??鐵路??聯鎖軟件界面開發(信號平面圖)\abc1.dsw
?????文件???????1334??2008-07-12?17:48??鐵路??聯鎖軟件界面開發(信號平面圖)\abc1.h
?????文件?????222208??2008-07-23?10:53??鐵路??聯鎖軟件界面開發(信號平面圖)\abc1.ncb
?????文件??????49664??2008-07-23?10:53??鐵路??聯鎖軟件界面開發(信號平面圖)\abc1.opt
?????文件????????242??2008-07-16?18:46??鐵路??聯鎖軟件界面開發(信號平面圖)\abc1.plg
?????文件??????12142??2008-07-16?18:45??鐵路??聯鎖軟件界面開發(信號平面圖)\abc1.rc
?????文件???????1702??2008-07-12?17:48??鐵路??聯鎖軟件界面開發(信號平面圖)\abc1Doc.cpp
?????文件???????1453??2008-07-12?17:48??鐵路??聯鎖軟件界面開發(信號平面圖)\abc1Doc.h
?????文件??????19675??2008-07-16?18:46??鐵路??聯鎖軟件界面開發(信號平面圖)\abc1View.cpp
?????文件???????2150??2008-07-12?18:08??鐵路??聯鎖軟件界面開發(信號平面圖)\abc1View.h
?????文件?????139332??2008-07-16?18:46??鐵路??聯鎖軟件界面開發(信號平面圖)\Debug\abc1.exe
?????文件?????374688??2008-07-16?18:46??鐵路??聯鎖軟件界面開發(信號平面圖)\Debug\abc1.ilk
?????文件??????23343??2008-07-13?16:45??鐵路??聯鎖軟件界面開發(信號平面圖)\Debug\abc1.obj
?????文件????5728324??2008-07-13?16:45??鐵路??聯鎖軟件界面開發(信號平面圖)\Debug\abc1.pch
?????文件?????451584??2008-07-16?18:46??鐵路??聯鎖軟件界面開發(信號平面圖)\Debug\abc1.pdb
?????文件???????7420??2008-07-16?18:45??鐵路??聯鎖軟件界面開發(信號平面圖)\Debug\abc1.res
?????文件??????14398??2008-07-13?16:45??鐵路??聯鎖軟件界面開發(信號平面圖)\Debug\abc1Doc.obj
?????文件??????62827??2008-07-16?18:46??鐵路??聯鎖軟件界面開發(信號平面圖)\Debug\abc1View.obj
?????文件??????19697??2008-07-13?16:45??鐵路??聯鎖軟件界面開發(信號平面圖)\Debug\MainFrm.obj
?????文件?????105428??2008-07-13?16:45??鐵路??聯鎖軟件界面開發(信號平面圖)\Debug\StdAfx.obj
?????文件?????230400??2008-07-16?18:46??鐵路??聯鎖軟件界面開發(信號平面圖)\Debug\vc60.idb
?????文件?????364544??2008-07-16?18:46??鐵路??聯鎖軟件界面開發(信號平面圖)\Debug\vc60.pdb
?????文件???????2505??2008-07-12?17:48??鐵路??聯鎖軟件界面開發(信號平面圖)\MainFrm.cpp
?????文件???????1581??2008-07-12?17:48??鐵路??聯鎖軟件界面開發(信號平面圖)\MainFrm.h
?????文件????????198??2002-07-15?16:27??鐵路??聯鎖軟件界面開發(信號平面圖)\Output?-?Build.txt
?????文件???????4266??2002-07-15?13:59??鐵路??聯鎖軟件界面開發(信號平面圖)\ReadMe.txt
............此處省略14個文件信息
- 上一篇:大屏控制軟件LcdWallCtrl
- 下一篇:H3CCE題庫加答案,通過率很高
評論
共有 條評論