[vtkusers] Still a Bug in vtkWin32OpenGLRenderWindow ?? -> Solution

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Wed Mar 3 06:26:38 EST 2004


> >    this->renWin->SetParentId(this->m_hWnd);
> very wrong.
This comes with the VTK examples!

OK. I see that this is true. I don't want to get involved with the MFC code,
because this is a part of an MDI program and perhaps it was the intention to
make the vtk window a child of the frame or parent.

> >    this->renWin->SetParentId(this->GetParent()->GetSafeHwnd());
> >    this->renWin->SetWindowId(this->GetSafeHwnd());
> very right.
Because it is const ? GetSafeHwnd() just returns m_hWnd

just the concept of setparent(parent)
setwindow(window) rather than setparent(window)

...

I am a little worried about the title of the thread "...Bug in
vtkWin32OpenGLRenderWindow..." because I don't think there is a bug. I
suspect that some misuse of the class is more likely. I have apps with 5 or
more windows in which have no crashing problems or anything similar.

JB




More information about the vtkusers mailing list