VC++雷达模拟程序


用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  BarDemoBarDemo.aps

     文件       6092  2011-10-23 19:52  BarDemoBarDemo.clw

     文件       4658  2011-10-21 19:20  BarDemoBarDemo.cpp

     文件       7435  2011-10-23 19:52  BarDemoBarDemo.dsp

     文件        522  2011-09-22 16:30  BarDemoBarDemo.dsw

     文件       1457  2011-06-20 22:28  BarDemoBarDemo.h

     文件       1078  2011-10-23 19:52  BarDemoBarDemo.ico

     文件     402432  2011-10-23 19:52  BarDemoBarDemo.ncb

     文件      58880  2011-10-23 19:52  BarDemoBarDemo.opt

     文件        248  2011-10-23 19:52  BarDemoBarDemo.plg

     文件      15600  2011-10-23 19:52  BarDemoBarDemo.rc

     文件        399  2001-09-02 15:20  BarDemoBarDemo.rc2

     文件      88816  2002-03-31 12:20  BarDemoBCMenu.cpp

     文件      16478  2002-03-31 12:20  BarDemoBCMenu.h

     文件      52061  2002-04-17 18:34  BarDemoBtnST.cpp

     文件       8392  2011-06-03 17:10  BarDemoBtnST.h

     文件       4310  2001-09-02 17:23  BarDemoug.bmp

     文件      17963  2011-10-21 19:27  BarDemoChildView.cpp

     文件       2461  2011-06-20 22:14  BarDemoChildView.h

     文件     230706  2008-11-28 23:02  BarDemoCIBAS.BMP

     文件      13292  2001-09-30 19:28  BarDemoCoolTabCtrl.cpp

     文件       3220  2001-09-30 19:25  BarDemoCoolTabCtrl.h

     文件       5475  2011-06-18 12:33  BarDemoCoordinateConvert.h

     文件      13574  2011-06-03 19:49  BarDemoDigitalClock.cpp

     文件       2400  2008-04-29 16:18  BarDemoDigitalClock.h

     文件      36864  2009-12-19 16:19  BarDemoDllCoordinateConvert.dll

     文件      23684  2009-12-19 16:19  BarDemoDllCoordinateConvert.lib

     文件      11193  2011-06-02 17:38  BarDemoGLFont.cpp

     文件       4592  2011-05-29 20:33  BarDemoGLFont.h

     文件       1022  2011-06-03 20:09  BarDemoInsertDlg.cpp

............此处省略55个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)