[vtkusers] vtknightly : win32 interactor not working

kitware-vtk at kulnet.kuleuven.ac.be kitware-vtk at kulnet.kuleuven.ac.be
Wed Aug 2 10:58:13 EDT 2000


---  Forwarded by news2mail for "Joris Vanden Wyngaerd" <joris.vandenwyngaerd at esat.kuleuven.ac.be> ---

I use vtk inside an MFC window. Since I downloaded the nightly on 19-7-2000,
interaction does not work anymore. It did work with the nightly I got on
12-7-2000.

I briefly looked at the vtk source code and see a change in
vtkWin32RenderWindowInteractor.cxx

in function

// This is only called when InstallMessageProc is true
LRESULT CALLBACK vtkHandleMessage(HWND hWnd,UINT uMsg, WPARAM wParam,
                                  LPARAM lParam)

This line was changed from :

      ren = (vtkWin32OpenGLRenderWindow *)GetWindowLong hWnd,GWL_USERDATA);


To

  ren = (vtkWin32OpenGLRenderWindow *)GetWindowLong(hWnd,4);

(and the call to this function returns NULL)

Looking at visual c++, I see that GWL_USERDATA is defined as -21.

Is something wrong with vtk or with how I use it ?

Joris
--

================
Joris Vanden Wyngaerd
coordinates : http://www.esat.kuleuven.ac.be/~joris/personalia.html






More information about the vtkusers mailing list