Condividi tramite


CMFCPopupMenu::SetForceMenuFocus

Forces the input focus to return to the menu bar when a pop-up menu is displayed.

static void SetForceMenuFocus(
   BOOL bValue 
);

Parameters

  • [in] bValue
    TRUE if you want the framework to force the input focus to the menu bar when a pop-up menu is displayed. FALSE if you want the pop-up menu to retain the focus.

Remarks

This method sets a flag that is global for all pop-up menus in the application. By default, this feature is not enabled.

Requirements

Header: afxpopupmenu.h

See Also

Reference

CMFCPopupMenu Class

Hierarchy Chart