fixed bug #1466486 - typo and menu problems in MakeNSISw

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4651 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2006-04-07 18:49:03 +00:00
parent a4724a1d6b
commit 4d12c5a857
8 changed files with 49 additions and 32 deletions

View file

@ -108,8 +108,8 @@ void CreateToolBar()
SendMessage(g_toolbar.hwnd, TB_ADDBITMAP, IMAGECOUNT, (LONG) &tbBitmap);
}
HMENU toolmenu = GetSubMenu(g_sdata.menu, SCRIPT_MENU_INDEX);
g_toolbar.dropdownmenu = GetSubMenu(toolmenu, COMPRESSOR_MENU_INDEX);
HMENU toolmenu = FindSubMenu(g_sdata.menu, IDM_SCRIPT);
g_toolbar.dropdownmenu = FindSubMenu(toolmenu, IDM_COMPRESSOR_SUBMENU);
RECT rect;
SendMessage(g_toolbar.hwnd, TB_GETITEMRECT, TBB_COMPRESSOR, (LPARAM) (LPRECT) &rect);
g_toolbar.dropdownpoint.x = rect.left;