Unit 'intuition' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

ResetMenuStrip

Re-attach a menu strip to a window.

Declaration

Source position: intuition.pas line 4158

function ResetMenuStrip(

  window: pWindow;

  menu: pMenu

):LongBool;

Arguments

window

  

A pointer to a Window structure

menu

  

A pointer to the first menu in the menu strip

Function result

True always.

Description

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:

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

The new sequence of events you can use is:

See also

SetMenuStrip

  

Attach a menu strip to a window.

ClearMenuStrip

  

Clear (detach) the menu strip from the window.


Documentation generated on: 2021-07-30