summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-12-25 20:25:58 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-12-25 20:25:58 +0000
commit44ee262326ba4787dc8001237bad3c58db10dbd1 (patch)
tree5d79f217f72bf877b166811ffea5d386c743234a /protocols/FacebookRM
parente6cc8b8de595b4d930f595fb0d1b79de120eed09 (diff)
less mind blowing code for the root menu creation
git-svn-id: http://svn.miranda-ng.org/main/trunk@7380 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r--protocols/FacebookRM/src/theme.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/protocols/FacebookRM/src/theme.cpp b/protocols/FacebookRM/src/theme.cpp
index 9671140c3f..6177f46b96 100644
--- a/protocols/FacebookRM/src/theme.cpp
+++ b/protocols/FacebookRM/src/theme.cpp
@@ -186,13 +186,13 @@ int FacebookProto::OnBuildStatusMenu(WPARAM wParam,LPARAM lParam)
HGENMENU hRoot = MO_GetProtoRootMenu(m_szModuleName);
if (hRoot == NULL) {
- mi.popupPosition = 500085000;
- mi.hParentMenu = HGENMENU_ROOT;
- mi.flags = CMIF_ROOTPOPUP | CMIF_TCHAR | CMIF_KEEPUNTRANSLATED | (this->isOnline() ? 0 : CMIF_GRAYED);
- mi.icolibItem = GetIconHandle("facebook");
- mi.ptszName = m_tszUserName;
- hRoot = m_hMenuRoot = Menu_AddProtoMenuItem(&mi);
- mi.popupPosition = 0;
+ CLISTMENUITEM miRoot = { sizeof(miRoot) };
+ miRoot.popupPosition = 500085000;
+ miRoot.hParentMenu = HGENMENU_ROOT;
+ miRoot.flags = CMIF_ROOTPOPUP | CMIF_TCHAR | CMIF_KEEPUNTRANSLATED | (this->isOnline() ? 0 : CMIF_GRAYED);
+ miRoot.icolibItem = GetIconHandle("facebook");
+ miRoot.ptszName = m_tszUserName;
+ hRoot = m_hMenuRoot = Menu_AddProtoMenuItem(&miRoot);
}
else {
if (m_hMenuRoot)
@@ -202,10 +202,10 @@ int FacebookProto::OnBuildStatusMenu(WPARAM wParam,LPARAM lParam)
mi.flags = CMIF_CHILDPOPUP | (this->isOnline() ? 0 : CMIF_GRAYED);
mi.position = 201001;
+ mi.hParentMenu = hRoot;
//CreateProtoService(m_szModuleName,"/Mind",&FacebookProto::OnMind,this);
strcpy(tDest,"/Mind");
- mi.hParentMenu = hRoot;
mi.pszName = LPGEN("Share status...");
mi.icolibItem = GetIconHandle("mind");
m_hStatusMind = Menu_AddProtoMenuItem(&mi);