[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]


    NAME
        ResetMenuStrip -- Re-attach a menu strip to a window. (V36)

    SYNOPSIS
        Success = ResetMenuStrip( window, menu )
        D0                        A0      A1

        bool resetmenustrip( struct window *, struct menu * );

    FUNCTION
        This function is simply a "fast" version of setmenustrip() that
        doesn't perform the precalculations of menu page sizes that
        setmenustrip() does.

        You may call this function ONLY IF the menu strip and all items
        and sub-items have not changed since the menu strip was passed to
        setmenustrip(), with the following exceptions:

        - You may change the CHECKED flag to turn a checkmark on or off.
        - You may change the ITEMENABLED flag to enable/disable some
          menuitem or menu structures.

        In all other ways, this function performs like setmenustrip().

        The new sequence of events you can use is:
        - openwindow()
        - setmenustrip()
        zero or more iterations of:
            - clearmenustrip()
            - change CHECKED or ITEMENABLED flags
            - ResetMenuStrip()
        - clearmenustrip()
        - closewindow()

    INPUTS
        window = pointer to a window structure
        menu = pointer to the first menu in the menu strip

    RESULT
        TRUE always.

    BUGS

    SEE ALSO
        setmenustrip(), clearmenustrip()