SECBar::SetMenu

todo

Defined in: SECBar.cpp

Syntax

SetMenu( HMENU hMenu )

SetMenu( CMenu* pMenu, int iSubMenu )

Return Value

void

Parameters

hMenu

HMENU object to use for popup menu

pMenu

CMenu object to use for popup menu

iSubMenu

index of submenu to extract from pMenu

Comments

if iSubMenu == -1, pMenu->m_hMenu will be used. If iSubMenu != -1, will get the sub menu at that index.
Pass in NULL for the HMENU variant to remove the menu

Example

SetMenu Example

//All 3 of the following are equivalent
SECBar* pBar = //Get Bar from somewhere
pBar->SetMenu( pMenu->GetSubMenu(1)->m_hMenu );
pBar->SetMenu( pMenu->GetSubmenu(1) );
pBar->SetMenu( pMenu, 1 );

See Also

GetMenu