CreateMenu (Windows CE 5.0)
The handle to the newly created menu indicates success. NULL indicates failure. To get extended error information, call GetLastError.
To add submenus to a menu bar, use the CreatePopupMenu function.
Resources associated with a menu that is assigned to a window are freed automatically. If the menu is not assigned to a window, an application must free system resources associated with the menu before closing. An application frees menu resources by calling the DestroyMenu function.
OS Versions: Windows CE 1.0 and later.
Link Library: Menu.lib.
Send Feedback on this topic to the authors