View Full Version : How to get the pointer of CView?please...
03-11-2003, 07:21 PM
I build a project based SDI .In CMyView I use openGL to draw and render my 3D objects,then I create a dialog class based CDialog in order to control openGL of CMyView,but how to get the pointer of CView or CMyView?I use "CView* pView" in dialog class,but I fail to control openGL of CMyView.help me,please...
03-11-2003, 11:34 PM
If you open the dialog from the view, then just pass the "this" pointer to the dialog and you got it, or did I missunderstand the problem in some way ?
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.