在mfc下完成cuda与opengl的交互,同时程序里还包含各种鼠标.键盘响应,如放大,缩小,旋转等
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 204800 2010-02-25 01:42 Test2Debugglew32.dll
文件 144384 2012-05-25 19:03 Test2DebugTest2.exe
文件 3681280 2012-05-25 19:03 Test2DebugTest2.pdb
文件 204800 2010-02-25 01:42 Test2glew32.dll
文件 2124 2012-05-25 18:20 Test2Test2CUDA.cu
文件 6614 2012-05-25 19:03 Test2Test2DebugBuildLog.htm
文件 60775 2012-05-25 18:20 Test2Test2DebugCUDA.cu.obj
文件 34179 2012-05-25 16:32 Test2Test2DebugMainFrm.obj
文件 65 2012-05-25 19:03 Test2Test2Debugmt.dep
文件 465607 2012-05-25 16:32 Test2Test2Debugstdafx.obj
文件 861 2012-05-25 19:03 Test2Test2DebugTest2.exe.intermediate.manifest
文件 61446 2012-05-25 16:32 Test2Test2DebugTest2.obj
文件 25296896 2012-05-25 16:32 Test2Test2DebugTest2.pch
文件 28188 2012-05-25 16:32 Test2Test2DebugTest2.res
文件 21136 2012-05-25 16:32 Test2Test2DebugTest2Doc.obj
文件 93947 2012-05-25 19:03 Test2Test2DebugTest2View.obj
文件 1182720 2012-05-25 19:03 Test2Test2Debugvc90.idb
文件 2166784 2012-05-25 19:03 Test2Test2Debugvc90.pdb
文件 1795 2012-05-16 18:49 Test2Test2MainFrm.cpp
文件 655 2012-05-16 18:49 Test2Test2MainFrm.h
文件 3382 2012-05-16 18:49 Test2Test2ReadMe.txt
....... 21630 2003-07-24 09:52 Test2Test2
esTest2.ico
文件 361 2012-05-16 18:49 Test2Test2
esTest2.rc2
....... 1078 2003-07-24 09:52 Test2Test2
esTest2Doc.ico
....... 1078 2003-07-24 09:52 Test2Test2
esToolbar.bmp
文件 677 2012-05-18 22:15 Test2Test2
esource.h
文件 136 2012-05-16 18:49 Test2Test2stdafx.cpp
文件 1796 2012-05-16 18:49 Test2Test2stdafx.h
文件 1030 2012-05-16 18:49 Test2Test2 argetver.h
文件 67180 2012-05-18 22:15 Test2Test2Test2.aps
............此处省略21个文件信息
// MainFrm.cpp : CMainframe 类的实现
//
#include “stdafx.h“
#include “Test2.h“
#include “MainFrm.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CMainframe
IMPLEMENT_DYNCREATE(CMainframe CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe CframeWnd)
ON_WM_CREATE()
END_MESSAGE_MAP()
static UINT indicators[] =
{
ID_SEPARATOR // 状态行指示器
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
// CMainframe 构造/析构
CMainframe::CMainframe()
{
// TODO: 在此添加成员初始化代码
}
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(“未能创建工具栏
“);
return -1; // 未能创建
}
if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators
sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“未能创建状态栏
“);
return -1; // 未能创建
}
// TODO: 如果不需要可停靠工具栏,则删除这三行
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: 在此处通过修改
// CREATESTRUCT cs 来修改窗口类或样式
return TRUE;
}
// CMainframe 诊断
#ifdef _DEBUG
void CMainframe::AssertValid() const
{
CframeWnd::AssertValid();
}
void CMainframe::Dump(CDumpContext& dc) const
{
CframeWnd::Dump(dc);
}
#endif //_DEBUG
// CMainframe 消息处理程序
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 204800 2010-02-25 01:42 Test2Debugglew32.dll
文件 144384 2012-05-25 19:03 Test2DebugTest2.exe
文件 3681280 2012-05-25 19:03 Test2DebugTest2.pdb
文件 204800 2010-02-25 01:42 Test2glew32.dll
文件 2124 2012-05-25 18:20 Test2Test2CUDA.cu
文件 6614 2012-05-25 19:03 Test2Test2DebugBuildLog.htm
文件 60775 2012-05-25 18:20 Test2Test2DebugCUDA.cu.obj
文件 34179 2012-05-25 16:32 Test2Test2DebugMainFrm.obj
文件 65 2012-05-25 19:03 Test2Test2Debugmt.dep
文件 465607 2012-05-25 16:32 Test2Test2Debugstdafx.obj
文件 861 2012-05-25 19:03 Test2Test2DebugTest2.exe.intermediate.manifest
文件 61446 2012-05-25 16:32 Test2Test2DebugTest2.obj
文件 25296896 2012-05-25 16:32 Test2Test2DebugTest2.pch
文件 28188 2012-05-25 16:32 Test2Test2DebugTest2.res
文件 21136 2012-05-25 16:32 Test2Test2DebugTest2Doc.obj
文件 93947 2012-05-25 19:03 Test2Test2DebugTest2View.obj
文件 1182720 2012-05-25 19:03 Test2Test2Debugvc90.idb
文件 2166784 2012-05-25 19:03 Test2Test2Debugvc90.pdb
文件 1795 2012-05-16 18:49 Test2Test2MainFrm.cpp
文件 655 2012-05-16 18:49 Test2Test2MainFrm.h
文件 3382 2012-05-16 18:49 Test2Test2ReadMe.txt
....... 21630 2003-07-24 09:52 Test2Test2
esTest2.ico
文件 361 2012-05-16 18:49 Test2Test2
esTest2.rc2
....... 1078 2003-07-24 09:52 Test2Test2
esTest2Doc.ico
....... 1078 2003-07-24 09:52 Test2Test2
esToolbar.bmp
文件 677 2012-05-18 22:15 Test2Test2
esource.h
文件 136 2012-05-16 18:49 Test2Test2stdafx.cpp
文件 1796 2012-05-16 18:49 Test2Test2stdafx.h
文件 1030 2012-05-16 18:49 Test2Test2 argetver.h
文件 67180 2012-05-18 22:15 Test2Test2Test2.aps
............此处省略21个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)