PDA

View Full Version : How to get the pointer of CView?please...



opengllover
03-11-2003, 08: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...

mikael_aronsson
03-12-2003, 12:34 AM
Hi !

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 ?

Mikael