diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-09 22:54:08 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-09 22:54:08 +0000 |
commit | 9a452de527d55caed4dfdb01f8fc3d549d9be5b3 (patch) | |
tree | 8b78e54d8f94fecf43208c595ee0cad271f53384 /plugins/TopToolBar/InternalButtons.cpp | |
parent | 6b2c624499dc8e6edf5ccd03403a6d4a05d65344 (diff) |
- fixes for Unicode;
- fixes for a hangup in nicer+;
- code redesign;
- CLCButton.cpp removed from project
git-svn-id: http://svn.miranda-ng.org/main/trunk@374 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar/InternalButtons.cpp')
-rw-r--r-- | plugins/TopToolBar/InternalButtons.cpp | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/plugins/TopToolBar/InternalButtons.cpp b/plugins/TopToolBar/InternalButtons.cpp index 38108823e8..5b7fc1db2a 100644 --- a/plugins/TopToolBar/InternalButtons.cpp +++ b/plugins/TopToolBar/InternalButtons.cpp @@ -125,7 +125,8 @@ INT_PTR TTBInternalSoundsOnOff(WPARAM wParam, LPARAM lParam) int UnLoadInternalButtons()
{
- if (hSettingChangedHook){UnhookEvent(hSettingChangedHook);}
+ if (hSettingChangedHook)
+ UnhookEvent(hSettingChangedHook);
return 0;
}
@@ -207,16 +208,16 @@ int LoadInternalButtons(HWND hwnd) {
hwndContactTree = hwnd;
hSettingChangedHook = 0;
- CreateServiceFunction(TTBI_GROUPSHOWHIDE, TTBInternalGroupShowHide);
- CreateServiceFunction(TTBI_SOUNDSONOFF, TTBInternalSoundsOnOff);
+ arServices.insert( CreateServiceFunction(TTBI_GROUPSHOWHIDE, TTBInternalGroupShowHide));
+ arServices.insert( CreateServiceFunction(TTBI_SOUNDSONOFF, TTBInternalSoundsOnOff));
- CreateServiceFunction(TTBI_OPTIONSBUTT, TTBInternalOptionsButt);
- CreateServiceFunction(TTBI_MAINMENUBUTT, TTBInternalMainMenuButt);
+ arServices.insert( CreateServiceFunction(TTBI_OPTIONSBUTT, TTBInternalOptionsButt));
+ arServices.insert( CreateServiceFunction(TTBI_MAINMENUBUTT, TTBInternalMainMenuButt));
- CreateServiceFunction(TTBI_MINIMIZEBUTT, TTBInternalMinimizeButt);
- CreateServiceFunction(TTBI_FINDADDBUTT, TTBInternalFindAddButt);
+ arServices.insert( CreateServiceFunction(TTBI_MINIMIZEBUTT, TTBInternalMinimizeButt));
+ arServices.insert( CreateServiceFunction(TTBI_FINDADDBUTT, TTBInternalFindAddButt));
- CreateServiceFunction("TEST1", test);
+ arServices.insert( CreateServiceFunction("TEST1", test));
ShowOnline = DBGetContactSettingByte(NULL, "CList", "HideOffline", 0);
ShowGroups = DBGetContactSettingByte(NULL, "CList", "UseGroups", 2);
@@ -283,16 +284,16 @@ int LoadInternalButtons(HWND hwnd) hMainMenuBut = (HANDLE)TTBAddButton((WPARAM)&ttb, 0);
CallService(MS_TTB_SETBUTTONOPTIONS, MAKEWPARAM(TTBO_TIPNAME, hOnlineBut),
- (LPARAM)((ShowOnline)?Translate("Hide Offline Users"):Translate("Show All Users")));
+ (LPARAM)((ShowOnline) ? "Hide Offline Users" : "Show All Users" ));
CallService(MS_TTB_SETBUTTONOPTIONS, MAKEWPARAM(TTBO_TIPNAME, hGroupBut),
- (LPARAM)((ShowGroups)?Translate("Hide Groups"):Translate("Show Groups")));
+ (LPARAM)((ShowGroups) ? "Hide Groups" : "Show Groups" ));
CallService(MS_TTB_SETBUTTONOPTIONS, MAKEWPARAM(TTBO_TIPNAME, hSoundsBut),
- (LPARAM)((SoundsEnabled)?Translate("Disable Sounds"):Translate("Enable Sounds")));
+ (LPARAM)((SoundsEnabled) ? "Disable Sounds" : "Enable Sounds" ));
CallService(MS_TTB_SETBUTTONOPTIONS, MAKEWPARAM(TTBO_TIPNAME, hOptionsBut),
- (LPARAM)Translate("Show Options"));
+ (LPARAM)"Show Options");
return 0;
}
|