[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  LoadMenu( hinst, cMenuName )-> <hMenu>
------------------------------------------------------------------------------


 PARAMETER:

  <hInst>      Handle that identifies the application instance whose
               executable file contains the menu to be loaded. 

  <cMenuName>  is the name of the menu resource to be loaded. Alternatively,
               this parameter can consist of the resource identifier in the
               low-order word and zero in the high-order word. 

 RETURNS:

  <hMenu> is the handle of the menu resource if the function is successful.
  Otherwise, it is NULL. 


 DESCRIPTION:

  LoadMenu() loads the specified menu resource from the executable file
  associated with the given application instance. 
  Before exiting, an application must free system resources associated with
  a menu if the menu is not assigned to a window. An application frees a
  menu by calling the DestroyMenu function. 


 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 SetMenu
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson