Menu::AddPopup

Description

Adds a popup menu at a the end of the menu

Syntax

BOOL AddPopup( LPCSTR lpcszText, Menu & menu, int nBeginId = -1 )

Parameters

lpcszText
name of the popup menu
menu
the menu object to be inserted
nBeginId
if internal menu, the first item of the inserted menu will have nBeginId as command ID. The consecutive items will have consecutive command IDs.

Return

returns true if successful else false.

Examples

Remark

See Also

header to Include

Control.h