diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-07-12 13:56:54 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-07-12 13:56:54 +0000 |
commit | e0b1fbf35cc17f73de8049cb72494c95669a9195 (patch) | |
tree | 994c4eae8122058f0f10bce4a4bffc98a24e8259 /plugins/AutoShutdown | |
parent | b17df7fca9fc9eb65037e2586dea15155ace1273 (diff) |
minor toptoolbar fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@925 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AutoShutdown')
-rw-r--r-- | plugins/AutoShutdown/src/settingsdlg.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/AutoShutdown/src/settingsdlg.cpp b/plugins/AutoShutdown/src/settingsdlg.cpp index 7c6ff90591..377882b3c1 100644 --- a/plugins/AutoShutdown/src/settingsdlg.cpp +++ b/plugins/AutoShutdown/src/settingsdlg.cpp @@ -407,20 +407,20 @@ static HANDLE hToolbarButton; static int ToolbarLoaded(WPARAM wParam,LPARAM lParam)
{
- TTBButton ttbb;
-
- ZeroMemory(&ttbb,sizeof(ttbb));
- ttbb.cbSize=sizeof(ttbb);
+ TTBButton ttbb = {0};
+ ttbb.cbSize = sizeof(ttbb);
/* toptoolbar offers icolib support */
- ttbb.hIconUp=(HICON)LoadImage(hInst,MAKEINTRESOURCE(IDI_ACTIVE),IMAGE_ICON,0,0,0);
- ttbb.hIconDn=(HICON)LoadImage(hInst,MAKEINTRESOURCE(IDI_INACTIVE),IMAGE_ICON,0,0,0);
- ttbb.pszService="AutoShutdown/MenuCommand";
- ttbb.dwFlags=TTBBF_VISIBLE|TTBBF_SHOWTOOLTIP;
- ttbb.name=Translate("Start/Stop automatic shutdown");
+ ttbb.hIconUp = (HICON)LoadImage(hInst, MAKEINTRESOURCE(IDI_ACTIVE), IMAGE_ICON, 0, 0, 0);
+ ttbb.hIconDn = (HICON)LoadImage(hInst, MAKEINTRESOURCE(IDI_INACTIVE), IMAGE_ICON, 0, 0, 0);
+ ttbb.pszService = "AutoShutdown/MenuCommand";
+ ttbb.dwFlags = TTBBF_VISIBLE | TTBBF_SHOWTOOLTIP;
+ ttbb.name = LPGEN("Start/Stop automatic shutdown");
+ ttbb.pszTooltipUp = LPGEN("Stop automatic shutdown");
+ ttbb.pszTooltipDn = LPGEN("Start automatic shutdown");
hToolbarButton = TopToolbar_AddButton(&ttbb);
- if(ttbb.hIconUp!=NULL) DestroyIcon(ttbb.hIconUp);
- if(ttbb.hIconDn!=NULL) DestroyIcon(ttbb.hIconDn);
+ if(ttbb.hIconUp != NULL) DestroyIcon(ttbb.hIconUp);
+ if(ttbb.hIconDn != NULL) DestroyIcon(ttbb.hIconDn);
return 0;
}
|