[vtkusers] Still a Bug in vtkWin32OpenGLRenderWindow ??

de Boer Ingo I.deBoer at polytec.de
Tue Mar 2 02:59:46 EST 2004


Hi,

> > There is a need for change to correct the Window and Parent ID.
> Why did you change window/parent Id ?
Well, it should be the correct way...shouldn't it ?

this->renWin->SetParentId(::GetParent(m_hWnd));
this->renWin->SetWindowId(m_hWnd);

What else should be the parent and window ID?
I mean... When you set the Window ID to ::GetParent(m_hWnd),
who is the parent ?
Anyways one has to set the SetWindowId.. this is a must...
Only setting the SetParentId doesn't work... But I don't know why...
I have taken a look at the source they have both the comment:

// Set the window id to a pre-existing window.
void vtkWin32OpenGLRenderWindow::SetWindowId(HWND arg)
// Set the window id to a pre-existing window.
void vtkWin32OpenGLRenderWindow::SetParentId(HWND arg)

Or maybe I don't understand the deeper sense in that ;)

> Did it worked before ?
Yes, of course... It worked with 4.2.5 release.
And it even doesn't matter if I change the parent or window
ID. In both cases, the application crashes...

greets 
  Ingo

---
Dr.-Ing. Ingo H. de Boer

Polytec GmbH
Polytec-Platz 1-7, 76337 Waldbronn, Germany
phone: ++49 7243 604 106
fax  : ++49 7243 604 255
 



More information about the vtkusers mailing list