Commit fecad5ca authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32: cleanups and warnings killing

parent f42777f3
...@@ -134,7 +134,6 @@ LRESULT VLCControlsWnd::WindowProc(UINT uMsg, WPARAM wParam, LPARAM lParam) ...@@ -134,7 +134,6 @@ LRESULT VLCControlsWnd::WindowProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_CREATE:{ case WM_CREATE:{
const int ControlsHeight = 21+3; const int ControlsHeight = 21+3;
const int ButtonsWidth = ControlsHeight; const int ButtonsWidth = ControlsHeight;
const int ScrollVOffset = (ControlsHeight-GetSystemMetrics(SM_CXHSCROLL))/2;
int HorizontalOffset = xControlsSpace; int HorizontalOffset = xControlsSpace;
int ControlWidth = ButtonsWidth; int ControlWidth = ButtonsWidth;
...@@ -319,7 +318,6 @@ LRESULT VLCControlsWnd::WindowProc(UINT uMsg, WPARAM wParam, LPARAM lParam) ...@@ -319,7 +318,6 @@ LRESULT VLCControlsWnd::WindowProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
} }
const int new_client_width = LOWORD(lParam); const int new_client_width = LOWORD(lParam);
const int new_client_height = HIWORD(lParam);
bool isFSBtnVisible = bool isFSBtnVisible =
(GetWindowLong(hFSButton, GWL_STYLE) & WS_VISIBLE) != 0; (GetWindowLong(hFSButton, GWL_STYLE) & WS_VISIBLE) != 0;
...@@ -553,7 +551,7 @@ void VLCControlsWnd::SetVLCVolumeBySliderPos(int CurPos) ...@@ -553,7 +551,7 @@ void VLCControlsWnd::SetVLCVolumeBySliderPos(int CurPos)
///////////////////////////////////// /////////////////////////////////////
//VLCControlsWnd event handlers //VLCControlsWnd event handlers
void VLCControlsWnd::handle_position_changed_event(const libvlc_event_t* event) void VLCControlsWnd::handle_position_changed_event(const libvlc_event_t* )
{ {
SyncVideoPosScrollPosWithVideoPos(); SyncVideoPosScrollPosWithVideoPos();
} }
...@@ -933,8 +931,8 @@ VLCFullScreenWnd* VLCFullScreenWnd::CreateFSWindow(VLCWindowsManager* WM) ...@@ -933,8 +931,8 @@ VLCFullScreenWnd* VLCFullScreenWnd::CreateFSWindow(VLCWindowsManager* WM)
/////////////////////// ///////////////////////
VLCWindowsManager::VLCWindowsManager(HMODULE hModule, const VLCViewResources& rc, VLCWindowsManager::VLCWindowsManager(HMODULE hModule, const VLCViewResources& rc,
const vlc_player_options* po) const vlc_player_options* po)
:_hModule(hModule), _hWindowedParentWnd(0), _p_md(0), _HolderWnd(0), _FSWnd(0), :_rc(rc), _hModule(hModule), _po(po), _hWindowedParentWnd(0), _p_md(0),
_b_new_messages_flag(false), Last_WM_MOUSEMOVE_Pos(0), _rc(rc), _po(po) _HolderWnd(0), _FSWnd(0), _b_new_messages_flag(false), Last_WM_MOUSEMOVE_Pos(0)
{ {
VLCFullScreenWnd::RegisterWndClassName(hModule); VLCFullScreenWnd::RegisterWndClassName(hModule);
} }
......
...@@ -145,7 +145,7 @@ public: ...@@ -145,7 +145,7 @@ public:
protected: protected:
VLCHolderWnd(HINSTANCE hInstance, VLCWindowsManager* WM) VLCHolderWnd(HINSTANCE hInstance, VLCWindowsManager* WM)
: VLCWnd(hInstance), _hMouseHook(NULL), _MouseHookThreadId(0), : VLCWnd(hInstance), _hMouseHook(NULL), _MouseHookThreadId(0),
_wm(WM), _CtrlsWnd(0), _hBgBrush(0) {}; _wm(WM), _hBgBrush(0), _CtrlsWnd(0) {};
bool Create(HWND hWndParent); bool Create(HWND hWndParent);
virtual void PreRegisterWindowClass(WNDCLASS* wc); virtual void PreRegisterWindowClass(WNDCLASS* wc);
...@@ -222,7 +222,7 @@ private: ...@@ -222,7 +222,7 @@ private:
public: public:
//libvlc events arrives from separate thread //libvlc events arrives from separate thread
void OnLibVlcEvent(const libvlc_event_t* event) {}; void OnLibVlcEvent(const libvlc_event_t* ) {};
private: private:
void NeedHideControls(); void NeedHideControls();
......
...@@ -38,7 +38,7 @@ protected: ...@@ -38,7 +38,7 @@ protected:
int x, int y, int nWidth, int nHeight, int x, int y, int nWidth, int nHeight,
HWND hWndParent, HMENU hMenu); HWND hWndParent, HMENU hMenu);
virtual void PreRegisterWindowClass(WNDCLASS* wc) {}; virtual void PreRegisterWindowClass(WNDCLASS* ) {};
virtual LRESULT WindowProc(UINT uMsg, WPARAM wParam, LPARAM lParam) virtual LRESULT WindowProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
{ return DefWindowProc(_hWnd, uMsg, wParam, lParam); }; { return DefWindowProc(_hWnd, uMsg, wParam, lParam); };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment