[vlc-devel] [PATCH] ActiveX, npapi win32: fixed mouse event handling in "stop" mode.

Rafaël Carré funman at videolan.org
Thu Dec 1 18:56:28 CET 2011


Le Thu, 1 Dec 2011 19:39:29 +0700,
Sergey Radionov <rsatom at gmail.com> a écrit :

> From ce19fac387960df6389f9e16f49341fdaa0a9c67 Mon Sep 17 00:00:00 2001
> From: Sergey Radionov <RSATom at gmail.com>
> Date: Thu, 1 Dec 2011 19:31:55 +0700
> Subject: [PATCH] ActiveX, npapi win32: fixed mouse event handling in "stop"
>  mode.
> 
> ---
>  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;

It looks like we used flags CS_NOCLOSE|CS_DBLCKS and someone removed
them. Was that removal to fix something?

>          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;



-- 
Rafaël Carré



More information about the vlc-devel mailing list