CMenu::SetDefaultItem

BOOL SetDefaultItem( UINT uItem**, BOOL** fByPos = FALSE );

Return Value

If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, use the Win32 function , as described in the Platform SDK.

Parameters

uItem

Identifier or position of the new default menu item or - 1 for no default item. The meaning of this parameter depends on the value of fByPos.

fByPos

Value specifying the meaning of uItem. If this parameter is FALSE, uItem is a menu item identifier. Otherwise, it is a menu item position.

Remarks

This member function implements the behavior of the Win32 function , as described in the Platform SDK.

Example

See the example for CMenu::InsertMenu.

CMenu OverviewClass MembersHierarchy Chart

See Also   CMenu::GetDefaultItem