Re-attach a menu strip to a window.
Source position: intuition.pas line 3927
function ResetMenuStrip( |
Window: PWindow; |
Menu: PMenu |
):LongBool; |
Window |
|
A pointer to a Window structure |
Menu |
|
A pointer to the first menu in the menu strip |
True always.
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:
zero or more iterations of:
|
Attach a menu strip to a window. |
|
|
Clear (detach) the menu strip from the window. |