[vtkusers] vtk SDI is no response for mouseclicking?

de Boer Ingo I.deBoer at polytec.de
Mon Nov 8 03:19:15 EST 2004


Hi,

please look at the samples at

http://www.vtk.org/Bug/bug.php?op=show&bugid=649&pos=0


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
  
-----Original Message-----
From: zfjgo [mailto:zfjgo at 126.com]
Sent: Monday, November 08, 2004 4:05 AM
To: vtkusers at vtk.org
Subject: [vtkusers] vtk SDI is no response for mouseclicking? 


I am writing a windows application using VC++6 and MFC . I wrote the program base on the vtk window sample program "vtkSDI", and when I need to catch the mouse click event using classwizard like WM_LBUTTONDOWN, WM_RBUTTONDOWN or WM_MOUSEMOVE. could there be some suggestion to solve this problem?? I really need to work this program!

Thanks for your help.
The following is my code,but it does not work.

LRESULT CVtkSDIView::CallInteractor(UINT uMsg, WPARAM wParam, LPARAM lParam) 
{ 
if (this->iren->GetInitialized()) 
{ 
return vtkHandleMessage2(this->m_hWnd,uMsg,wParam,lParam,this->iren); 
} 

return 0; 
} 


void CVtkSDIView::OnLButtonDown(UINT nFlags, CPoint point) 
{
// TODO: Add your message handler code here and/or call default
CString msg;
msg="asdsadsadasdsad";
AfxMessageBox(msg);
this->CallInteractor(WM_LBUTTONDOWN,(WPARAM)(UINT)(nFlags),MAKELPARAM((point.x), (point.y)));

}

-----------------------------------------------------------
?????????"G"?? ???????????? 



More information about the vtkusers mailing list