diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-19 17:01:50 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-19 17:01:50 +0000 |
commit | 638ccde5cf7428b75d0de5c0254ce07261085fee (patch) | |
tree | 830e697eb0904c50abe41ba66c4b57ff5e903196 /plugins/TabSRMM/src/TSButton.cpp | |
parent | 394540126b181982d8b61d07a084ceeac8559ed1 (diff) |
button control moved to wParam everywhere
git-svn-id: http://svn.miranda-ng.org/main/trunk@483 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/TSButton.cpp')
-rw-r--r-- | plugins/TabSRMM/src/TSButton.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/plugins/TabSRMM/src/TSButton.cpp b/plugins/TabSRMM/src/TSButton.cpp index 57c3221f38..7c47c1d05a 100644 --- a/plugins/TabSRMM/src/TSButton.cpp +++ b/plugins/TabSRMM/src/TSButton.cpp @@ -542,43 +542,43 @@ static LRESULT CALLBACK TSButtonWndProc(HWND hwndDlg, UINT msg, WPARAM wParam, InvalidateRect(bct->hwnd, NULL, TRUE);
break;
case BUTTONSETDEFAULT:
- bct->defbutton = wParam ? 1 : 0;
+ bct->defbutton = (wParam != 0);
InvalidateRect(bct->hwnd, NULL, TRUE);
break;
case BUTTONSETASPUSHBTN:
- bct->pushBtn = 1;
+ bct->pushBtn = (wParam != 0);
InvalidateRect(bct->hwnd, NULL, TRUE);
break;
case BUTTONSETASFLATBTN:
- bct->flatBtn = lParam == 0 ? 1 : 0;
+ bct->flatBtn = (wParam != 0);
InvalidateRect(bct->hwnd, NULL, TRUE);
break;
- case BUTTONSETASFLATBTN + 10:
- bct->bThemed = lParam ? TRUE : FALSE;
+ case BUTTONSETASTHEMED:
+ bct->bThemed = (wParam != 0);
break;
- case BUTTONSETASFLATBTN + 11:
- bct->dimmed = lParam ? TRUE : FALSE;
+ case BUTTONSETASDIMMED:
+ bct->dimmed = (wParam != 0);
break;
- case BUTTONSETASFLATBTN + 12:
- bct->pContainer = (struct TContainerData *)lParam;
+ case BUTTONSETCONTAINER:
+ bct->pContainer = (struct TContainerData *)wParam;
break;
- case BUTTONSETASFLATBTN + 13:
+ case BUTTONSETASTITLE:
bct->bTitleButton = TRUE;
break;
- case BUTTONSETASFLATBTN + 14:
+ case BUTTONSETASNORMAL:
bct->stateId = (wParam) ? PBS_NORMAL : PBS_DISABLED;
InvalidateRect(bct->hwnd, NULL, FALSE);
break;
- case BUTTONSETASFLATBTN + 15:
+ case BUTTONGETSTATEID:
return bct->stateId;
case BUTTONSETASTOOLBARBUTTON:
- bct->bToolbarButton = lParam;
+ bct->bToolbarButton = wParam;
break;
case BUTTONSETASSIDEBARBUTTON:
- bct->sitem = reinterpret_cast<CSideBarButton *>(lParam);
+ bct->sitem = reinterpret_cast<CSideBarButton *>(wParam);
break;
case BUTTONSETOVERLAYICON:
- bct->overlay = (HICON)lParam;
+ bct->overlay = (HICON)wParam;
break;
case BUTTONADDTOOLTIP: {
TOOLINFO ti;
|