資源簡介
3D基礎(chǔ):opengl 顯示點云數(shù)據(jù),MFC框架下

代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“PointCloud.h“
#include?“MainFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMainframe
IMPLEMENT_DYNCREATE(CMainframe?CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe?CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
ON_WM_CREATE()
ON_WM_GETMINMAXINFO()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static?UINT?indicators[]?=
{
ID_SEPARATOR???????????//?status?line?indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?construction/destruction
CMainframe::CMainframe()
{
//?TODO:?add?member?initialization?code?here
m_bFullScreenKey=FALSE;
}
CMainframe::~CMainframe()
{
}
int?CMainframe::OnCreate(LPCREATESTRUCT?lpCreateStruct)
{
if?(CframeWnd::OnCreate(lpCreateStruct)?==?-1)
return?-1;
if?(!m_wndToolBar.CreateEx(this?TBstyle_FLAT?WS_CHILD?|?WS_VISIBLE?|?CBRS_TOP
|?CBRS_GRIPPER?|?CBRS_TOOLTIPS?|?CBRS_FLYBY?|?CBRS_SIZE_DYNAMIC)?||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed?to?create?toolbar\n“);
return?-1;??????//?fail?to?create
}
if?(!m_wndStatusBar.Create(this)?||
!m_wndStatusBar.SetIndicators(indicators
??sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed?to?create?status?bar\n“);
return?-1;??????//?fail?to?create
}
//?TODO:?Delete?these?three?lines?if?you?don‘t?want?the?toolbar?to
//??be?dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return?0;
}
BOOL?CMainframe::PreCreateWindow(CREATESTRUCT&?cs)
{
if(?!CframeWnd::PreCreateWindow(cs)?)
return?FALSE;
//?TODO:?Modify?the?Window?class?or?styles?here?by?modifying
//??the?CREATESTRUCT?cs
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?diagnostics
#ifdef?_DEBUG
void?CMainframe::AssertValid()?const
{
CframeWnd::AssertValid();
}
void?CMainframe::Dump(CDumpContext&?dc)?const
{
CframeWnd::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?message?handlers
void?CMainframe::xyshow(int?x?int?y)
{
}
void?CMainframe::OnGetMinMaxInfo(MINMAXINFO?FAR*?lpMMI)?
{
//?TODO:?Add?your?message?handler?code?here?and/or?call?default
CframeWnd::OnGetMinMaxInfo(lpMMI);
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-07-30?18:12??PointCloud\
?????文件????????2642??2012-02-11?17:09??PointCloud\MainFrm.cpp
?????文件????????1602??2012-02-11?13:42??PointCloud\MainFrm.h
?????文件????????1731??2012-02-11?17:09??PointCloud\Point3D.cpp
?????文件????????1136??2012-02-11?12:43??PointCloud\Point3D.h
?????文件???????46116??2014-04-09?11:24??PointCloud\PointCloud.aps
?????文件????????1054??2012-02-11?20:21??PointCloud\PointCloud.clw
?????文件????????4282??2012-02-11?17:16??PointCloud\PointCloud.cpp
?????文件????????4788??2012-02-11?17:05??PointCloud\PointCloud.dsp
?????文件?????????545??2012-02-11?17:06??PointCloud\PointCloud.dsw
?????文件????????1406??2012-02-11?17:09??PointCloud\PointCloud.h
?????文件???????56832??2012-02-13?11:21??PointCloud\PointCloud.opt
?????文件????????1218??2012-02-13?11:17??PointCloud\PointCloud.plg
?????文件???????11263??2014-04-09?11:24??PointCloud\PointCloud.rc
?????文件?????????885??2013-12-09?14:33??PointCloud\PointCloud.sln
?????文件???????32218??2014-04-09?11:24??PointCloud\PointCloud.suo
?????文件????????9038??2014-04-09?11:24??PointCloud\PointCloud.vcproj
?????文件????????1427??2014-04-09?11:24??PointCloud\PointCloud.vcproj.PC2012111911TIA.Mosir.user
?????文件????????3609??2012-02-12?11:27??PointCloud\PointCloudDoc.cpp
?????文件????????1573??2012-02-12?11:27??PointCloud\PointCloudDoc.h
?????文件???????12095??2013-08-06?11:42??PointCloud\PointCloudView.cpp
?????文件????????3299??2012-02-13?10:41??PointCloud\PointCloudView.h
?????文件????????4431??2012-02-11?10:33??PointCloud\ReadMe.txt
?????文件?????????213??2012-02-11?10:33??PointCloud\StdAfx.cpp
?????文件????????1155??2012-02-12?11:27??PointCloud\StdAfx.h
?????目錄???????????0??2014-07-17?17:09??PointCloud\res\
?????文件????????1078??2012-02-11?10:33??PointCloud\res\PointCloud.ico
?????文件?????????403??2012-02-11?10:33??PointCloud\res\PointCloud.rc2
?????文件????????1078??2012-02-11?10:33??PointCloud\res\PointCloudDoc.ico
?????文件????????1078??2012-02-11?10:33??PointCloud\res\Toolbar.bmp
?????文件?????????591??2014-04-09?11:24??PointCloud\resource.h
............此處省略1個文件信息
- 上一篇:C語言斗地主程序
- 下一篇:快速排序-改進的樞軸元素-三者取中算法比較
評論
共有 條評論