Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.5 KB

ResetMenuStrip.md

File metadata and controls

55 lines (37 loc) · 1.5 KB

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 * );

Links: Window Menu Window 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:

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