[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
SetMenu( hwnd, hmenu )-> <lSuccess>
------------------------------------------------------------------------------
PARAMETER:
<hWnd> Handle that identifies the target window whose menu is
to be changed.
<hMenu> Identifies the new menu. If this parameter is NULL, the
window's current menu is removed.
RETURNS:
<lSuccess> is TRUE if the function is successful
DESCRIPTION:
The SetMenu function sets the given window's menu to the specified menu.
It then causes the window to be redrawn to reflect the menu change.
SetMenu will not destroy a previous menu. An application should call
DestroyMenu() to accomplish this task.
EXAMPLE:
+--------------------------------------------------------------+
| /* Load a menu, and assign it to a window */ |
| LOCAL hMenu |
| |
| hMenu := LoadMenu( GetInstance(), "FileMenu" ) |
| SetMenu( oWnd:hWnd, hMenu ) |
+--------------------------------------------------------------+
SOURCE:
SOURCE\WINAPI\MENUS.C
See Also:
DestroyMenu
LoadMenu
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson