diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-11 21:53:08 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-11 21:53:08 +0000 |
commit | 2b982f8a1f23ae29136f62fb3819df50c281e19f (patch) | |
tree | 2bcd75424aa5187212a888fa57f1ff63a6baa8ae /plugins/CrashDumper | |
parent | c25eab397cf1ab92b1d6fa5933a6981ba0409bd7 (diff) |
rest of minor TopToolbar_AddButton issues
git-svn-id: http://svn.miranda-ng.org/main/trunk@3981 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CrashDumper')
-rw-r--r-- | plugins/CrashDumper/src/crshdmp.cpp | 46 |
1 files changed, 22 insertions, 24 deletions
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;
}
|