CreatePopupMenu

Version 3.0

Syntax

HMENU CreatePopupMenu()

This function creates and returns a handle to an empty pop-up menu.

An application adds items to the pop-up menu by calling InsertMenu and AppendMenu. The application can add the pop-up menu to an existing menu or pop-up menu, or it may display and track selections on the pop-up menu by calling TrackPopupMenu.

This function has no parameters.

Return Value

The return value identifies the newly created menu. It is NULL if the menu cannot be created.