whole_func_string: function (menu) {
          var items = menu.items.items, win = menu.theWin;
          items[0].setDisabled(win.maximized !== true && win.hidden !== true); // Restore
          items[1].setDisabled(win.minimized === true); // Minimize
          items[2].setDisabled(win.maximized === true || win.hidden === true); // Maximize
          items[4].setDisabled(!!win.noShortcut);
          items[5].setDisabled(!!win.noShortcut);
      }
func_code_string: function (menu) {
          var items = menu.items.items, win = menu.theWin;
          items[0].setDisabled(win.maximized !== true && win.hidden !== true); // Restore
          items[1].setDisabled(win.minimized === true); // Minimize
          items[2].setDisabled(win.maximized === true || win.hidden === true); // Maximize
          items[4].setDisabled(!!win.noShortcut);
          items[5].setDisabled(!!win.noShortcut);
      }
func_documentation_string: ------------------------------------------------------ Window context menu handlers