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

Yang Jian yaland2004 at 126.com
Fri Sep 9 01:07:31 EDT 2005


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





More information about the vtkusers mailing list