資源簡介
用VC++開發的雷達模擬程序,主要是創建了一個雷達模擬系統的框架,具體內容自己網上加吧。呵呵(VC++業余愛好者)

代碼片段和文件信息
//?BarDemo.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“BarDemo.h“
#include?“MainFrm.h“
#include“SplashWindow.h“
#include?
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CBarDemoApp
BEGIN_MESSAGE_MAP(CBarDemoApp?CWinApp)
//{{AFX_MSG_MAP(CBarDemoApp)
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
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CBarDemoApp?construction
CBarDemoApp::CBarDemoApp()
{
//?TODO:?add?construction?code?here
pView?=?NULL;
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CBarDemoApp?object
CBarDemoApp?theApp;
bool?g_Mode?=?false; //工作模式:0工作,1繪圖
CCoordinateConvert?g_Convert;
GEO_COORDINATE?g_SysPosition;
/////////////////////////////////////////////////////////////////////////////
//?CBarDemoApp?initialization
BOOL?CBarDemoApp::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“));
SetDialogBkColor(RGB(100170230));
//?To?create?the?main?window?this?code?creates?a?new?frame?window
//?object?and?then?sets?it?as?the?application‘s?main?window?object.
/* CSplashWindow?*m_pSplashWindow?=?new?CSplashWindow;
m_pSplashWindow->CreateSplash();
m_pSplashWindow->CenterWindow();
m_pSplashWindow->ShowWindow(SW_SHOW);
m_pSplashWindow->UpdateWindow();
//存在問題:無法實時刷新
//播放音頻資源方法一
CString?sID=“IDR_WAVE1“;
HINSTANCE?h=AfxGetInstanceHandle();
HRSRC?hr=FindResource(hsID“WAVE“);
HGLOBAL?hg=LoadResource(hhr);
LPSTR?lp=(LPSTR)LockResource(hg);
////sndPlaySound(lpSND_MEMORY|SND_SYNC);
?sndPlaySound(lpSND_MEMORY|SND_SYNC);?
FreeResource(hg);
//播放音頻資源方法二
// ::PlaySound(“SplashWindow.wav“?NULL?SND_ASYNC?|?SND_FILENAME);
//Sleep(3000);
//銷毀啟動畫面資源
m_pSplashWindow->DestroyWindow();?//Destroy?Splash?Window
delete?m_pSplashWindow;
*/
CMainframe*?pframe?=?new?CMainframe;
m_pMainWnd?=?pframe;
//?create?and?lo
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????4772024??2011-10-23?19:52??BarDemo\BarDemo.aps
?????文件???????6092??2011-10-23?19:52??BarDemo\BarDemo.clw
?????文件???????4658??2011-10-21?19:20??BarDemo\BarDemo.cpp
?????文件???????7435??2011-10-23?19:52??BarDemo\BarDemo.dsp
?????文件????????522??2011-09-22?16:30??BarDemo\BarDemo.dsw
?????文件???????1457??2011-06-20?22:28??BarDemo\BarDemo.h
?????文件???????1078??2011-10-23?19:52??BarDemo\BarDemo.ico
?????文件?????402432??2011-10-23?19:52??BarDemo\BarDemo.ncb
?????文件??????58880??2011-10-23?19:52??BarDemo\BarDemo.opt
?????文件????????248??2011-10-23?19:52??BarDemo\BarDemo.plg
?????文件??????15600??2011-10-23?19:52??BarDemo\BarDemo.rc
?????文件????????399??2001-09-02?15:20??BarDemo\BarDemo.rc2
?????文件??????88816??2002-03-31?12:20??BarDemo\BCMenu.cpp
?????文件??????16478??2002-03-31?12:20??BarDemo\BCMenu.h
?????文件??????52061??2002-04-17?18:34??BarDemo\BtnST.cpp
?????文件???????8392??2011-06-03?17:10??BarDemo\BtnST.h
?????文件???????4310??2001-09-02?17:23??BarDemo\bug.bmp
?????文件??????17963??2011-10-21?19:27??BarDemo\ChildView.cpp
?????文件???????2461??2011-06-20?22:14??BarDemo\ChildView.h
?????文件?????230706??2008-11-28?23:02??BarDemo\CIBAS.BMP
?????文件??????13292??2001-09-30?19:28??BarDemo\CoolTabCtrl.cpp
?????文件???????3220??2001-09-30?19:25??BarDemo\CoolTabCtrl.h
?????文件???????5475??2011-06-18?12:33??BarDemo\CoordinateConvert.h
?????文件??????13574??2011-06-03?19:49??BarDemo\DigitalClock.cpp
?????文件???????2400??2008-04-29?16:18??BarDemo\DigitalClock.h
?????文件??????36864??2009-12-19?16:19??BarDemo\DllCoordinateConvert.dll
?????文件??????23684??2009-12-19?16:19??BarDemo\DllCoordinateConvert.lib
?????文件??????11193??2011-06-02?17:38??BarDemo\GLFont.cpp
?????文件???????4592??2011-05-29?20:33??BarDemo\GLFont.h
?????文件???????1022??2011-06-03?20:09??BarDemo\InsertDlg.cpp
............此處省略55個文件信息
- 上一篇:wxWidgets初學者導引
- 下一篇:計算機網絡課程設計 IP數據報的捕獲和解析
評論
共有 條評論