Partager via


CMFCPopupMenu::EnableMenuSound

Enables menu sound.

static void EnableMenuSound(
   BOOL bEnable = TRUE
);

Parameters

  • [in] bEnable
    TRUE to enable sound, FALSE otherwise.

Remarks

If you enable sound, the framework calls the PlaySound method when a user opens a pop-up menu or selects a menu command. By default, this feature is enabled.

Requirements

Header: afxpopupmenu.h

See Also

Reference

CMFCPopupMenu Class

Hierarchy Chart