diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-13 13:00:12 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-13 13:00:12 +0000 |
commit | d89dd2fe88191ce9b8ff0f68b93b45d00cff64b4 (patch) | |
tree | b8541b46c88ec3c2902fa99e047cee717cdcaf73 /plugins/Mwclist/clisttray.cpp | |
parent | de5eb083cd53451b14991b6c61474bad3b9a5249 (diff) |
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@392 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Mwclist/clisttray.cpp')
-rw-r--r-- | plugins/Mwclist/clisttray.cpp | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/plugins/Mwclist/clisttray.cpp b/plugins/Mwclist/clisttray.cpp index 9112d74a1f..04e71c6a0c 100644 --- a/plugins/Mwclist/clisttray.cpp +++ b/plugins/Mwclist/clisttray.cpp @@ -155,26 +155,21 @@ INT_PTR TrayMenuonAddService(WPARAM wParam,LPARAM lParam) MENUITEMINFO *mii = (MENUITEMINFO* )wParam;
if (mii == NULL) return 0;
- if (hHideShowMainMenuItem == (HANDLE)lParam)
- {
- mii->fMask|=MIIM_STATE;
- mii->fState|=MFS_DEFAULT;
-
+ if (hHideShowMainMenuItem == (HANDLE)lParam) {
+ mii->fMask |= MIIM_STATE;
+ mii->fState |= MFS_DEFAULT;
}
- if (hTrayMainMenuItemProxy == (HANDLE)lParam)
- {
- mii->fMask|=MIIM_SUBMENU;
- //mi.fType = MFT_STRING;
- mii->hSubMenu = (HMENU)CallService(MS_CLIST_MENUGETMAIN,0,0);
+
+ if (hTrayMainMenuItemProxy == (HANDLE)lParam) {
+ mii->fMask |= MIIM_SUBMENU;
+ mii->hSubMenu = (HMENU)CallService(MS_CLIST_MENUGETMAIN,0,0);
}
- if (hTrayStatusMenuItemProxy == (HANDLE)lParam)
- {
- mii->fMask|=MIIM_SUBMENU;
- //mi.fType = MFT_STRING;
- mii->hSubMenu = (HMENU)CallService(MS_CLIST_MENUGETSTATUS,0,0);
+ if (hTrayStatusMenuItemProxy == (HANDLE)lParam) {
+ mii->fMask |= MIIM_SUBMENU;
+ mii->hSubMenu = (HMENU)CallService(MS_CLIST_MENUGETSTATUS,0,0);
}
-
+
return(TRUE);
}
|