Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 989 Bytes

CreateMenu.md

File metadata and controls

44 lines (28 loc) · 989 Bytes

Home

Function name : CreateMenu

Group: Menu - Library: user32


The CreateMenu function creates a menu. The menu is initially empty, but it can be filled with menu items by using the InsertMenuItem, AppendMenu, and InsertMenu functions.


Code examples:

Attaching menu to a top-level form
Shortcut Menu Class

Declaration:

HMENU CreateMenu(VOID);  

FoxPro declaration:

DECLARE INTEGER CreateMenu IN user32  

Parameters:

This function has no parameters.


Return value:

If the function succeeds, the return value is a handle to the newly created menu. If the function fails, the return value is NULL.


Comments:

Call the DestroyMenu function to free the resource.