From 06fc3d811d71a44b92d45e1263e5fb0099a7304e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 1 Dec 2016 19:33:16 +0300 Subject: toolbar icons processing code moved to mir_app --- plugins/MenuItemEx/src/main.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'plugins/MenuItemEx/src') diff --git a/plugins/MenuItemEx/src/main.cpp b/plugins/MenuItemEx/src/main.cpp index 79611ab50e..c8534b46bb 100644 --- a/plugins/MenuItemEx/src/main.cpp +++ b/plugins/MenuItemEx/src/main.cpp @@ -895,16 +895,12 @@ static int TabsrmmButtonPressed(WPARAM wParam, LPARAM lParam) static int TabsrmmButtonsInit(WPARAM, LPARAM) { BBButton bbd = { 0 }; - - bbd.cbSize = sizeof(BBButton); bbd.pszModuleName = MODULENAME; - bbd.dwButtonID = 0; bbd.dwDefPos = 1000; bbd.pwszTooltip = LPGENW("Browse Received Files"); bbd.bbbFlags = BBBF_CANBEHIDDEN; bbd.hIcon = IcoLib_GetIconHandle("miex_recfiles"); - CallService(MS_BB_ADDBUTTON, 0, (LPARAM)&bbd); - + Srmm_AddButton(&bbd); return 0; } @@ -913,11 +909,10 @@ static void TabsrmmButtonsModify(MCONTACT hContact) if (!DirectoryExists(hContact)) { BBButton bbd = { 0 }; - bbd.cbSize = sizeof(BBButton); bbd.dwButtonID = 0; bbd.pszModuleName = MODULENAME; bbd.bbbFlags = BBSF_DISABLED | BBSF_HIDDEN; - CallService(MS_BB_SETBUTTONSTATE, hContact, (LPARAM)&bbd); + Srmm_SetButtonState(hContact, &bbd); } } -- cgit v1.2.3