set_menu


bool set_menu(handle window,
              handle menu)

This function assigns a new menu to a window.

Parameters

handle window

The handle of the window.

handle menu

The handle of the menu to be assigned. If null is specified, the current menu is removed.

Return

bool

true The function succeeded.
false The call failed.

Notes

The new menu is redrawn automatically.

The menu being replaced is not automatically destroyed.