Commit c93a88b2 authored by Sergey Radionov's avatar Sergey Radionov

npapi win32, ActiveX: added VLC cone displaying when no video playing.

parent af21ada4
......@@ -120,6 +120,19 @@ LRESULT CALLBACK VLCHolderWnd::VLCHolderClassWndProc(HWND hWnd, UINT uMsg, WPARA
MoveWindow(hWnd, 0, 0,
(ParentClientRect.right-ParentClientRect.left),
(ParentClientRect.bottom-ParentClientRect.top), FALSE);
h_data->_hConeIcon = LoadIcon( h_data->_WindowsManager->getHModule(), MAKEINTRESOURCE(8) );
break;
}
case WM_PAINT:{
PAINTSTRUCT PaintStruct;
HDC hDC = BeginPaint(hWnd, &PaintStruct);
RECT rect;
GetClientRect(hWnd, &rect);
int IconX = ((rect.right - rect.left) - GetSystemMetrics(SM_CXICON))/2;
int IconY = ((rect.bottom - rect.top) - GetSystemMetrics(SM_CYICON))/2;
DrawIcon(hDC, IconX, IconY, h_data->_hConeIcon);
EndPaint(hWnd, &PaintStruct);
break;
}
case WM_NCDESTROY:
......
......@@ -61,14 +61,15 @@ private:
private:
VLCHolderWnd(HWND hWnd, VLCWindowsManager* WM)
: _hMouseHook(NULL), _MouseHookThreadId(0), _hWnd(hWnd)
, _WindowsManager(WM){};
: _hMouseHook(NULL), _MouseHookThreadId(0), _hWnd(hWnd),
_WindowsManager(WM), _hConeIcon(0){};
public:
HWND getHWND() const {return _hWnd;}
private:
HWND _hWnd;
HICON _hConeIcon;
VLCWindowsManager* _WindowsManager;
};
......
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