From 6ac63284a8f93f977db66673727d4995a86764c4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 10 Mar 2013 12:45:32 +0000 Subject: various TTB initialization issues git-svn-id: http://svn.miranda-ng.org/main/trunk@3957 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Sessions/Src/Main.cpp | 44 +++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'plugins/Sessions/Src') diff --git a/plugins/Sessions/Src/Main.cpp b/plugins/Sessions/Src/Main.cpp index ae81054d33..89ef6e1266 100644 --- a/plugins/Sessions/Src/Main.cpp +++ b/plugins/Sessions/Src/Main.cpp @@ -851,28 +851,28 @@ INT_PTR BuildFavMenu(WPARAM wparam,LPARAM lparam) static int CreateButtons(WPARAM wparam,LPARAM lparam) { - TTBButton button = {0}; - button.dwFlags = TTBBF_SHOWTOOLTIP | TTBBF_VISIBLE; - - button.pszService = MS_SESSIONS_OPENMANAGER; - button.pszTooltipUp = button.name = LPGEN("Open Sessions Manager"); - button.hIconHandleUp = iconList[3].hIcolib; - TopToolbar_AddButton(&button); - - button.pszService = MS_SESSIONS_SAVEUSERSESSION; - button.pszTooltipUp = button.name = LPGEN("Save Session"); - button.hIconHandleUp = iconList[4].hIcolib; - TopToolbar_AddButton(&button); - - button.pszService = MS_SESSIONS_RESTORELASTSESSION; - button.pszTooltipUp = button.name = LPGEN("Restore Last Session"); - button.hIconHandleUp = iconList[5].hIcolib; - TopToolbar_AddButton(&button); - - button.pszService = MS_SESSIONS_SHOWFAVORITESMENU; - button.pszTooltipUp = button.name = LPGEN("Show Favorite Sessions Menu"); - button.hIconHandleUp = iconList[1].hIcolib; - TopToolbar_AddButton(&button); + TTBButton ttb = { sizeof(ttb) }; + ttb.dwFlags = TTBBF_SHOWTOOLTIP | TTBBF_VISIBLE; + + ttb.pszService = MS_SESSIONS_OPENMANAGER; + ttb.pszTooltipUp = ttb.name = LPGEN("Open Sessions Manager"); + ttb.hIconHandleUp = iconList[3].hIcolib; + TopToolbar_AddButton(&ttb); + + ttb.pszService = MS_SESSIONS_SAVEUSERSESSION; + ttb.pszTooltipUp = ttb.name = LPGEN("Save Session"); + ttb.hIconHandleUp = iconList[4].hIcolib; + TopToolbar_AddButton(&ttb); + + ttb.pszService = MS_SESSIONS_RESTORELASTSESSION; + ttb.pszTooltipUp = ttb.name = LPGEN("Restore Last Session"); + ttb.hIconHandleUp = iconList[5].hIcolib; + TopToolbar_AddButton(&ttb); + + ttb.pszService = MS_SESSIONS_SHOWFAVORITESMENU; + ttb.pszTooltipUp = ttb.name = LPGEN("Show Favorite Sessions Menu"); + ttb.hIconHandleUp = iconList[1].hIcolib; + TopToolbar_AddButton(&ttb); return 0; } -- cgit v1.2.3