[vtkusers] How to interact?

zfjgo zfjgo at 126.com
Thu Oct 21 04:36:36 EDT 2004


Hello
    
I am attempting to interact with vtkRenderWindow,so I add the following VC++ code into my Project.But all the message have no response except WM_CHAR.
Why?
Do I need to overwrite them?How to do it ?

Thanks for your reply.



LRESULT CVtkSDIView::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->iren->GetInitialized())
      {
        return vtkHandleMessage2(this->m_hWnd, message, wParam, lParam, this->iren);
      }
      break;
  }
   
  return CView::WindowProc(message, wParam, lParam);
 
}


-----------------------------------------------------------
网易126专业电子邮局,为您提供卓越电子邮件服务,http://www.126.com/
全国最大的免费邮箱,260兆空间12兆附件,强力杀毒反垃圾,界面无广告


More information about the vtkusers mailing list