[vtkusers] Solution to: "sample" interactor dosn't work
Ted Christiansen
ted at caept.com
Sun Sep 8 07:32:03 EDT 2002
Ron,
I havent seen the latest vtk sample, but this was a problem previously.
Make sure that vtkHandleMessage2 is being called and not
vtkHandleMessage:
friend VTK_EXPORT LRESULT CALLBACK vtkHandleMessage2(HWND hwnd,UINT
uMsg, WPARAM w, LPARAM l, vtkWin32RenderWindowInteractor *me);
// Define our own event handler here
LRESULT vtkMFCRenderView::WindowProc(UINT message, WPARAM wParam, LPARAM
lParam)
{
switch (message)
{
//case WM_PAINT:
case WM_LBUTTONDOWN:
case WM_LBUTTONUP:
case WM_MBUTTONDOWN:
case WM_MBUTTONUP:
case WM_RBUTTONDOWN:
case WM_RBUTTONUP:
case WM_MOUSEMOVE:
case WM_CHAR:
case WM_TIMER:
if (this->Interactor->GetInitialized())
{
return vtkHandleMessage2(this->m_hWnd, message, wParam, lParam, );
}
break;
}
return vtkMFCView::WindowProc(message, wParam, lParam);
}
More information about the vtkusers
mailing list