[vtkusers] vtkRenderWindowInteractor does not process key events
Daniel Lüken
d.lueken at stud.fh-dortmund.de
Thu Mar 29 19:35:57 EDT 2007
>> ...
>> switch(message)
>> {
>> ...
>> case WM_SETFOCUS:
>> SetFocus(theVTKApp->getWnd());
>BE CAREFUL, now.... (If getWnd() returns 0 you will be setting focus
>to the Windows desktop...! Probably not going to happen, but probably
>not what you want if it does happen...)
Oh - right. :)
Before I came across the vtk I never wrote win32 gui applications in c++.
case WM_SETFOCUS:
{
HWND vtkwnd = theVTKApp->getWnd();
if(vtkwnd)
SetFocus(vtkwnd);
return 0;
}
break;
More information about the vtkusers
mailing list