How to get the pointer of CView?please...

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…

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