diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-01-20 18:15:44 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-01-20 18:15:44 +0000 |
commit | c7aee154e3175f9b2d763705d941bcf10894f933 (patch) | |
tree | f194bbf7ad46bb9022989bc785ecedaf2ef6fcdd /plugins/BASS_interface | |
parent | 4e58aa129c384884d3b9863ac62859e75c1a8b4b (diff) |
added frame icon
git-svn-id: http://svn.miranda-ng.org/main/trunk@3192 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/BASS_interface')
-rw-r--r-- | plugins/BASS_interface/src/Main.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
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};
|