--- np2/macosx/toolwin.cpp 2004/03/02 23:23:06 1.18 +++ np2/macosx/toolwin.cpp 2004/03/15 05:06:01 1.19 @@ -203,9 +203,7 @@ const char *p; bool success = false; GetBevelButtonMenuHandle(hwnd, &menu); - while (MenuHasEnabledItems(menu)) { - DeleteMenuItem(menu, 1); - }; + DeleteMenuItems(menu, 1, fdd->cnt); #if 0 GetControlBounds(hwnd, &rc); width = rc.right - rc.left - 6; // border size? @@ -265,6 +263,9 @@ const char *p; } else { SetControlTitleWithCFString(hwnd, CFSTR(" ")); + for (i=0; icnt; i++) { + CheckMenuItem(menu, i+1, 0); + } } }