Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content


Creates and initializes a CMenuTearOffManager object.

BOOL EnableTearOffMenus(
   LPCTSTR lpszRegEntry,
   const UINT uiCmdFirst,
   const UINT uiCmdLast 

[in] lpszRegEntry

A string that contains the path of a registry key. The application uses this registry key to store information for the tear-off menus.

[in] uiCmdFirst

The first tear off menu ID.

[in] uiCmdLast

The last tear off menu ID.

True if the CMenuTearOffManager is created and initialized successfully; false if an error occurs or if the CMenuTearOffManager already exists.

Use this function to enable tear-off menus in your application. You should call this function from InitInstance.

Header: afxwinappex.h

© 2015 Microsoft