文件名称:aaa
介绍说明--下载内容均来自于网络,请自行研究使用
这是用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