[vlc-commits] ActiveX, npapi win32: fixed mouse event handling in "stop" mode.
Sergey Radionov
git at videolan.org
Thu Dec 1 23:06:42 CET 2011
npapi-vlc | branch: master | Sergey Radionov <RSATom at gmail.com> | Thu Dec 1 19:31:55 2011 +0700| [7a3e9c3908826d72b34a2f4643de675c6cbe68dc] | committer: Jean-Baptiste Kempf
ActiveX, npapi win32: fixed mouse event handling in "stop" mode.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=7a3e9c3908826d72b34a2f4643de675c6cbe68dc
---
common/win32_fullscreen.cpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/common/win32_fullscreen.cpp b/common/win32_fullscreen.cpp
index 5967a1d..690d79c 100644
--- a/common/win32_fullscreen.cpp
+++ b/common/win32_fullscreen.cpp
@@ -49,7 +49,7 @@ void VLCHolderWnd::RegisterWndClassName(HINSTANCE hInstance)
if( ! GetClassInfo(_hinstance, getClassName(), &wClass) )
{
- wClass.style = 0;//CS_NOCLOSE|CS_DBLCLKS;
+ wClass.style = CS_DBLCLKS;
wClass.lpfnWndProc = VLCHolderClassWndProc;
wClass.cbClsExtra = 0;
wClass.cbWndExtra = 0;
@@ -130,6 +130,10 @@ LRESULT CALLBACK VLCHolderWnd::VLCHolderClassWndProc(HWND hWnd, UINT uMsg, WPARA
}
break;
}
+ case WM_MOUSEMOVE:
+ case WM_LBUTTONDBLCLK:
+ h_data->_WindowsManager->OnMouseEvent(uMsg);
+ break;
case WM_MOUSE_EVENT_NOTIFY:{
h_data->_WindowsManager->OnMouseEvent(wParam);
return WM_MOUSE_EVENT_NOTIFY_SUCCESS;
More information about the vlc-commits
mailing list