Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - INT 1
Search - INT 1 - List
DL : 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
Date : 2026-01-07 Size : 1kb User : 徐国华

Laborations in VTK Visualization Course Lab 2 - Introduction to VTK
Date : 2026-01-07 Size : 312kb User : SU
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.