diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-27 19:28:09 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-27 19:28:09 +0000 |
commit | 03df9032e2b6248fed2bcf1e6d40fbfba4581779 (patch) | |
tree | 29275137a963939beed2b788ade711ef131f4a3c /plugins/Clist_modern | |
parent | 68677c938c33f5d60ad800e0872d824918d56243 (diff) |
minor menu related fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@14420 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern')
-rw-r--r-- | plugins/Clist_modern/src/CLUIFrames/cluiframes.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/Clist_modern/src/CLUIFrames/cluiframes.cpp b/plugins/Clist_modern/src/CLUIFrames/cluiframes.cpp index ca7f000fbc..24cf7b4f08 100644 --- a/plugins/Clist_modern/src/CLUIFrames/cluiframes.cpp +++ b/plugins/Clist_modern/src/CLUIFrames/cluiframes.cpp @@ -1494,19 +1494,18 @@ static int CLUIFramesLoadMainMenu() cont.MainMenuItem = Menu_AddMainMenuItem(&mi);
// create frames menu
+ mi.hParentMenu = cont.MainMenuItem;
int separator = 3000200000;
for (int i = 0; i < g_nFramesCount; i++) {
mi.icolibItem = g_pfwFrames[i].TitleBar.hicon;
mi.flags = CMIF_TCHAR;
- mi.position = separator;
- mi.hParentMenu = cont.MainMenuItem;
+ mi.position = separator++;
mi.name.t = g_pfwFrames[i].TitleBar.tbname ? g_pfwFrames[i].TitleBar.tbname : g_pfwFrames[i].name;
mi.pszService = 0;
g_pfwFrames[i].MenuHandles.MainMenuItem = Menu_AddMainMenuItem(&mi);
CLUIFramesCreateMenuForFrame(g_pfwFrames[i].id, g_pfwFrames[i].MenuHandles.MainMenuItem, separator, true);
CLUIFramesModifyMainMenuItems(g_pfwFrames[i].id, 0);
CallService(MS_CLIST_FRAMEMENUNOTIFY, (WPARAM)g_pfwFrames[i].id, (LPARAM)g_pfwFrames[i].MenuHandles.MainMenuItem);
- separator++;
}
separator += 100000;
@@ -1515,7 +1514,6 @@ static int CLUIFramesLoadMainMenu() mi.icolibItem = NULL;
mi.flags = 0;
mi.position = separator++;
- mi.hParentMenu = cont.MainMenuItem;
mi.name.a = LPGEN("Show all frames");
mi.pszService = MS_CLIST_FRAMES_SHOWALLFRAMES;
Menu_AddMainMenuItem(&mi);
|