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

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Wed Mar 3 06:04:03 EST 2004


I'd just like to chip in here...

>  > This only worked with setting the ParentID to
>  > SetParentId(::GetParent(m_hWnd)) and the windowID to
>  > SetWindowId(m_hWnd)
>
> That's right!

yes

>  > which doesn't work anymore under VTK 4.4.0
>
> That's strange. :(

I've been using the above approach for years and have a cvs update from a
few days ago which is still working fine. I'd be very careful about putting
changes into vtkWin32openglRenderWindow based upon what I've read in this
thread.

>    this->renWin->SetParentId(this->m_hWnd);

very wrong.

>    this->renWin->SetParentId(this->GetParent()->GetSafeHwnd());
>    this->renWin->SetWindowId(this->GetSafeHwnd());

very right.


> That's all and it works for me even with the current nightly
> without any crash at the end of the program.

Quite right.

$0.02

JB




More information about the vtkusers mailing list