文件名称:aaa
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.27kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
这是用MFC编写的使用openGL的视口代码。
CChildView::CChildView() 构造函数
CChildView::~CChildView() 析构函数
BEGIN_MESSAGE_MAP(CChildView,CWnd ) 消息映射
BOOL CChildView::PreCreateWindow(CREATESTRUCT& cs)创建窗口重新设置窗口参数
BOOL CChildView::PreTranslateMessage( MSG* pMsg ) 翻译消息
int CChildView::OnCreate( LPCREATESTRUCT lpCreateStruct ) 窗口创建好后进入此函数 完成openGL的初始化
void CChildView::OnSize( UINT nType, int cx, int cy ) 当窗口大小发生改变时重新设置OPenGL的视口参数。
void CChildView::OnDestroy() 销毁窗口 -It is written in MFC to use openGL viewport code. CChildView:: CChildView () constructor CChildView:: ~ CChildView () destructor BEGIN_MESSAGE_MAP (CChildView, CWnd) message map BOOL CChildView:: PreCreateWindow (CREATESTRUCT & cs) to create a window to reset the window parameters BOOL CChildView:: PreTranslateMessage (MSG* pMsg ) translation of the message int CChildView:: OnCreate (LPCREATESTRUCT lpCreateStruct) window is created and entered this function to complete openGL initialization void CChildView:: OnSize (UINT nType, int cx, int cy) when the window size changed, re-setting the OPenGL viewport parameters. void CChildView:: OnDestroy () destruction of the window
CChildView::CChildView() 构造函数
CChildView::~CChildView() 析构函数
BEGIN_MESSAGE_MAP(CChildView,CWnd ) 消息映射
BOOL CChildView::PreCreateWindow(CREATESTRUCT& cs)创建窗口重新设置窗口参数
BOOL CChildView::PreTranslateMessage( MSG* pMsg ) 翻译消息
int CChildView::OnCreate( LPCREATESTRUCT lpCreateStruct ) 窗口创建好后进入此函数 完成openGL的初始化
void CChildView::OnSize( UINT nType, int cx, int cy ) 当窗口大小发生改变时重新设置OPenGL的视口参数。
void CChildView::OnDestroy() 销毁窗口 -It is written in MFC to use openGL viewport code. CChildView:: CChildView () constructor CChildView:: ~ CChildView () destructor BEGIN_MESSAGE_MAP (CChildView, CWnd) message map BOOL CChildView:: PreCreateWindow (CREATESTRUCT & cs) to create a window to reset the window parameters BOOL CChildView:: PreTranslateMessage (MSG* pMsg ) translation of the message int CChildView:: OnCreate (LPCREATESTRUCT lpCreateStruct) window is created and entered this function to complete openGL initialization void CChildView:: OnSize (UINT nType, int cx, int cy) when the window size changed, re-setting the OPenGL viewport parameters. void CChildView:: OnDestroy () destruction of the window
(系统自动生成,下载前可以参看下载内容)
下载文件列表
aaa.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.