Page 1 of 1

how to handle the mouse message to vlc window

Posted: 18 Oct 2006 06:17
by btwo0
hi all

In VLC, the DirectXEventThread create video windo and handle its message. I use VLC Activex in my VC application to play the viedo.I would like to intercept the mouse message to the directx window.
e.g) WM_LBUTTONDOWN, i would like to my appliction to handle the message not vlc

thanks

Posted: 24 Oct 2006 08:18
by BorPas
i only have a very very crazy solution! please don't laugh :-)
you need to create a control 1x1px and fill it with overlay color (so it will be transparent), then make a timer, that will put 1x1px control directly under the mouse cursor and handle all mouse events on your 1x1px control :-)
it realy works! contact me to see an example

Posted: 25 Oct 2006 13:39
by LazyT
For Windows i've simply added a PostMessage() for the needed Events in modules/video_output/directx/events.c to inform my ParentWindow.

For X11 i'm still looking for a Solution. Until now no Success with modules/video_output/x11/xcommon.c and adding a XSendEvent() because i dont know anything about this stuff... :cry:

Anybody who can help out with this?

Posted: 09 Nov 2006 23:49
by Fritivi
Just put your Active X on a panel with Enabled property set to False ;)