[vtkusers] Mixing vtk and OpenGL views with MFC

Nigel Nunn nNunn at ausport.gov.au
Wed Mar 12 12:06:02 EST 2003


Hi Martin, 
 
Do your views have the style flag "CS_OWNDC"?  Only guessing, 
but giving each view its own DC may help avoid tangling their 
display contexts... 

BOOL vtkMFCRenderView::PreCreateWindow(CREATESTRUCT& cs) 
{
  cs.style |= WS_CLIPSIBLINGS | WS_CLIPCHILDREN | CS_OWNDC;
  return CView::PreCreateWindow(cs);
}

> I need to display two opengl views and one vtk view to the 
> screen at the same time on top of the windows mfc framework.
> I have tried to get vtk to share the main frame using static 
> splitters and I have let vtk have it's own window.  The 
> problem is that using vtk in either configuration messes up 
> the other two opengl views. What happens is this; 
> ... 
 
Nigel 
 
 

**********************************************************************
This message is intended for the addressee named and may contain 
confidential and privileged information. If you are not the intended 
recipient please note that any form of distribution, copying or use of 
this communication or the information in it is strictly prohibited and 
may be unlawful. If you receive this message in error, please delete it 
and notify the sender.

Keep up to date with what's happening in Australian sport.
Visit http://www.ausport.gov.au
**********************************************************************



More information about the vtkusers mailing list