From 2b982f8a1f23ae29136f62fb3819df50c281e19f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 11 Mar 2013 21:53:08 +0000 Subject: rest of minor TopToolbar_AddButton issues git-svn-id: http://svn.miranda-ng.org/main/trunk@3981 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CrashDumper/src/crshdmp.cpp | 46 ++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 24 deletions(-) (limited to 'plugins/CrashDumper/src') diff --git a/plugins/CrashDumper/src/crshdmp.cpp b/plugins/CrashDumper/src/crshdmp.cpp index 7d2af2bc90..d01e364ee3 100644 --- a/plugins/CrashDumper/src/crshdmp.cpp +++ b/plugins/CrashDumper/src/crshdmp.cpp @@ -202,30 +202,28 @@ int OptionsInit(WPARAM wParam, LPARAM) static int ToolbarModulesLoaded(WPARAM, LPARAM) { - TTBButton tbb = {0}; - tbb.cbSize = sizeof(TTBButton); - - tbb.pszService = MS_CRASHDUMPER_STORETOCLIP; - tbb.name = tbb.pszTooltipUp = LPGEN("Version Information To Clipboard"); - tbb.hIconHandleUp = GetIconHandle(IDI_VITOCLIP); - tbb.dwFlags = TTBBF_VISIBLE; - TopToolbar_AddButton(&tbb); - - tbb.pszService = MS_CRASHDUMPER_STORETOFILE; - tbb.name = tbb.pszTooltipUp = LPGEN("Version Information To File"); - tbb.hIconHandleUp = GetIconHandle(IDI_VITOFILE); - tbb.dwFlags = 0; - TopToolbar_AddButton(&tbb); - - tbb.pszService = MS_CRASHDUMPER_VIEWINFO; - tbb.name = tbb.pszTooltipUp = LPGEN("Show Version Information"); - tbb.hIconHandleUp = GetIconHandle(IDI_VISHOW); - TopToolbar_AddButton(&tbb); - - tbb.pszService = MS_CRASHDUMPER_UPLOAD; - tbb.name = tbb.pszTooltipUp = LPGEN("Upload Version Information"); - tbb.hIconHandleUp = GetIconHandle(IDI_VIUPLOAD); - TopToolbar_AddButton(&tbb); + TTBButton ttb = { sizeof(ttb) }; + ttb.pszService = MS_CRASHDUMPER_STORETOCLIP; + ttb.name = ttb.pszTooltipUp = LPGEN("Version Information To Clipboard"); + ttb.hIconHandleUp = GetIconHandle(IDI_VITOCLIP); + ttb.dwFlags = TTBBF_VISIBLE; + TopToolbar_AddButton(&ttb); + + ttb.pszService = MS_CRASHDUMPER_STORETOFILE; + ttb.name = ttb.pszTooltipUp = LPGEN("Version Information To File"); + ttb.hIconHandleUp = GetIconHandle(IDI_VITOFILE); + ttb.dwFlags = 0; + TopToolbar_AddButton(&ttb); + + ttb.pszService = MS_CRASHDUMPER_VIEWINFO; + ttb.name = ttb.pszTooltipUp = LPGEN("Show Version Information"); + ttb.hIconHandleUp = GetIconHandle(IDI_VISHOW); + TopToolbar_AddButton(&ttb); + + ttb.pszService = MS_CRASHDUMPER_UPLOAD; + ttb.name = ttb.pszTooltipUp = LPGEN("Upload Version Information"); + ttb.hIconHandleUp = GetIconHandle(IDI_VIUPLOAD); + TopToolbar_AddButton(&ttb); return 0; } -- cgit v1.2.3