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/buttonsbar.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/buttonsbar.cpp')
-rw-r--r-- | plugins/TabSRMM/src/buttonsbar.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/TabSRMM/src/buttonsbar.cpp b/plugins/TabSRMM/src/buttonsbar.cpp index 43115a116b..29d15161fb 100644 --- a/plugins/TabSRMM/src/buttonsbar.cpp +++ b/plugins/TabSRMM/src/buttonsbar.cpp @@ -213,7 +213,7 @@ void CB_ChangeButton(HWND hwndDlg, struct TWindowData *dat, CustomButtonData* cb SendMessage(hwndBtn, BM_SETIMAGE, IMAGE_ICON, (LPARAM)CallService(MS_SKIN2_GETICONBYHANDLE, 0, (LPARAM)cbd->hIcon));
if (cbd->ptszTooltip)
SendMessage(hwndBtn, BUTTONADDTOOLTIP, (WPARAM)TranslateTS(cbd->ptszTooltip), 0);
- SendMessage(hwndBtn, BUTTONSETASFLATBTN + 12, 0, (LPARAM)dat->pContainer);
+ SendMessage(hwndBtn, BUTTONSETCONTAINER, (LPARAM)dat->pContainer, 0);
}
}
@@ -567,19 +567,19 @@ void TSAPI BB_InitDlgButtons(TWindowData *dat) if (!cbd->bDummy && !GetDlgItem(hdlg, cbd->dwButtonCID))
hwndBtn = CreateWindowEx(0, _T("TSButtonClass"), _T(""), WS_CHILD | WS_VISIBLE | WS_TABSTOP, rect.right - rwidth + gap, splitterY, cbd->iButtonWidth, DPISCALEY_S(22), hdlg, (HMENU) cbd->dwButtonCID, g_hInst, NULL);
if (!cbd->bDummy && hwndBtn) {
- SendMessage(hwndBtn, BUTTONSETASFLATBTN, 0, 0);
- SendMessage(hwndBtn, BUTTONSETASFLATBTN + 10, 0, isThemed ? 1 : 0);
+ SendMessage(hwndBtn, BUTTONSETASFLATBTN, TRUE, 0);
+ SendMessage(hwndBtn, BUTTONSETASTHEMED, isThemed != 0, 0);
if (cbd->hIcon)
SendMessage(hwndBtn, BM_SETIMAGE, IMAGE_ICON, (LPARAM)CallService(MS_SKIN2_GETICONBYHANDLE, 0, (LPARAM)cbd->hIcon));
if (cbd->ptszTooltip)
SendMessage(hwndBtn, BUTTONADDTOOLTIP, (WPARAM)TranslateTS(cbd->ptszTooltip), 0);
- SendMessage(hwndBtn, BUTTONSETASFLATBTN + 12, 0, (LPARAM)dat->pContainer);
- SendMessage(hwndBtn, BUTTONSETASTOOLBARBUTTON, 0, 1);
+ SendMessage(hwndBtn, BUTTONSETCONTAINER, (LPARAM)dat->pContainer, 0);
+ SendMessage(hwndBtn, BUTTONSETASTOOLBARBUTTON, TRUE, 0);
if (hwndBtn && cbd->dwArrowCID)
SendMessage(hwndBtn, BUTTONSETARROW, cbd->dwArrowCID, 0);
if (hwndBtn && cbd->bPushButton)
- SendMessage(hwndBtn, BUTTONSETASPUSHBTN, 0, 0);
+ SendMessage(hwndBtn, BUTTONSETASPUSHBTN, TRUE, 0);
}
} else if (GetDlgItem(hdlg, cbd->dwButtonCID))
DestroyWindow(GetDlgItem(hdlg, cbd->dwButtonCID));
@@ -605,19 +605,19 @@ void TSAPI BB_InitDlgButtons(TWindowData *dat) if (!cbd->bHidden && !cbd->bCanBeHidden)
dat->iButtonBarReallyNeeds += cbd->iButtonWidth + gap;
if (!cbd->bDummy && hwndBtn) {
- SendMessage(hwndBtn, BUTTONSETASFLATBTN, 0, 0);
- SendMessage(hwndBtn, BUTTONSETASFLATBTN + 10, 0, isThemed ? 1 : 0);
+ SendMessage(hwndBtn, BUTTONSETASFLATBTN, TRUE, 0);
+ SendMessage(hwndBtn, BUTTONSETASTHEMED, isThemed != 0, 0);
if (cbd->hIcon)
SendMessage(hwndBtn, BM_SETIMAGE, IMAGE_ICON, (LPARAM)CallService(MS_SKIN2_GETICONBYHANDLE, 0, (LPARAM)cbd->hIcon));
if (cbd->ptszTooltip)
SendMessage(hwndBtn, BUTTONADDTOOLTIP, (WPARAM)TranslateTS(cbd->ptszTooltip), 0);
- SendMessage(hwndBtn, BUTTONSETASFLATBTN + 12, 0, (LPARAM)dat->pContainer);
- SendMessage(hwndBtn, BUTTONSETASTOOLBARBUTTON, 0, 1);
+ SendMessage(hwndBtn, BUTTONSETCONTAINER, (LPARAM)dat->pContainer, 0);
+ SendMessage(hwndBtn, BUTTONSETASTOOLBARBUTTON, TRUE, 0);
if (hwndBtn && cbd->dwArrowCID)
SendMessage(hwndBtn, BUTTONSETARROW, cbd->dwArrowCID, 0);
if (hwndBtn && cbd->bPushButton)
- SendMessage(hwndBtn, BUTTONSETASPUSHBTN, 0, 0);
+ SendMessage(hwndBtn, BUTTONSETASPUSHBTN, TRUE, 0);
}
} else if (GetDlgItem(hdlg, cbd->dwButtonCID))
DestroyWindow(GetDlgItem(hdlg, cbd->dwButtonCID));
|