From c7aee154e3175f9b2d763705d941bcf10894f933 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 20 Jan 2013 18:15:44 +0000 Subject: added frame icon git-svn-id: http://svn.miranda-ng.org/main/trunk@3192 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BASS_interface/src/Main.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'plugins/BASS_interface') diff --git a/plugins/BASS_interface/src/Main.cpp b/plugins/BASS_interface/src/Main.cpp index b2f8c367e1..35303457b0 100644 --- a/plugins/BASS_interface/src/Main.cpp +++ b/plugins/BASS_interface/src/Main.cpp @@ -356,7 +356,7 @@ static WNDPROC OldSliderWndProc = 0; static LRESULT CALLBACK SliderWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { - switch(msg) { + switch(msg) { case WM_ERASEBKGND: return TRUE; } @@ -364,7 +364,7 @@ static LRESULT CALLBACK SliderWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM } static LRESULT CALLBACK FrameWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { - switch(msg) + switch(msg) { case WM_CREATE: { @@ -430,7 +430,6 @@ static LRESULT CALLBACK FrameWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPAR { HDC dc = (HDC)wParam; RECT rc; - GetClientRect(hwnd, &rc); FillRect(dc, &rc, hBkgBrush); return TRUE; @@ -438,9 +437,8 @@ static LRESULT CALLBACK FrameWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPAR case WM_CTLCOLORSTATIC: { - if((HANDLE)lParam == hwndSlider) { + if ((HWND)lParam == hwndSlider) { HDC dc = (HDC)wParam; - SetBkColor(dc, clBack); return (BOOL)hBkgBrush; } @@ -448,7 +446,7 @@ static LRESULT CALLBACK FrameWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPAR } case WM_DESTROY: - if(hwndSlider && IsWindow(hwndSlider) && OldSliderWndProc != 0) + if (hwndSlider && IsWindow(hwndSlider) && OldSliderWndProc != 0) SetWindowLongPtr(hwndSlider, GWLP_WNDPROC, (LONG)OldSliderWndProc); break; @@ -504,6 +502,7 @@ void CreateFrame() Frame.align = alBottom; Frame.Flags = F_TCHAR | F_VISIBLE | F_SHOWTB | F_SHOWTBTIP; Frame.height = 22; + Frame.hIcon = LoadSkinnedIcon(SKINICON_OTHER_MIRANDA); frame_id = (HANDLE)CallService(MS_CLIST_FRAMES_ADDFRAME, (WPARAM)&Frame, 0); ColourIDT colourid = {0}; -- cgit v1.2.3