Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CMFCPopupMenu::SetForceMenuFocus

 

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

static void SetForceMenuFocus(
   BOOL bValue 
);

[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.

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

Show: