how to handle the mouse message to vlc window

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
btwo0
Blank Cone
Blank Cone
Posts: 17
Joined: 19 Jul 2006 06:37

how to handle the mouse message to vlc window

Postby btwo0 » 18 Oct 2006 06:17

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

BorPas
Blank Cone
Blank Cone
Posts: 15
Joined: 25 Aug 2006 12:38

Postby BorPas » 24 Oct 2006 08:18

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

LazyT
New Cone
New Cone
Posts: 6
Joined: 25 Oct 2006 13:27

Postby LazyT » 25 Oct 2006 13:39

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?

Fritivi
New Cone
New Cone
Posts: 5
Joined: 24 May 2006 10:01

Postby Fritivi » 09 Nov 2006 23:49

Just put your Active X on a panel with Enabled property set to False ;)
http://fritivi.free.fr ... merci VLC ! :D


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 12 guests