[vtkusers] How can I capture mouse events under win32 appliction?

de Boer Ingo I.deBoer at polytec.de
Fri Sep 9 02:51:25 EDT 2005


Hi,

you can find a sample for mouse capturing here:

http://public.kitware.com/Bug/bug.php?op=show&bugid=649

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-----
> Subject: [vtkusers] How can I capture mouse events under 
> win32 appliction?
> 
> 
> Dear All;
> 
> I am trying to render camera rotation angle in a 
> vtkTextMapper under win32 application,but how can I capture 
> mouse envents?
> it seems the following code doesn't response the message loop.
> 
> case WM_LBUTTONDOWN:
> 		OnLBUTTONDOWN();
> 		break;
> case WM_LBUTTONUP:
> 		OnLBUTTONUP();
> 		break;
> case WM_MOUSEMOVE:
> 		OnMouseMove();
> 		break;
> 
> if it is imperative to capture the mouse events for me to get 
> the camera rotation angles? if it is,how can i capture the 
> mouse events?
> 
> any help will be so appreciated.
> 
> 
> 	
> 
> Best Regards, 				
> 
> Jian Yang
> Department of Opto-electronic Engineering
> Beijing Institute of Technology
> Beijing 100081, China
> Tel: (86 10) 6891.2565-13	
> 2005-09-09
> 
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: 
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 



More information about the vtkusers mailing list