BCGControlBar Pro for MFC
BOOL CBCGPWorkspace::EnableTearOffMenus ( LPCTSTR  lpszRegEntry,
const UINT  uiCmdFirst,
const UINT  uiCmdLast 
)

Enables using of tear-off menus in application.

Use this function to enable tear-off menus in application. Call this function from InitInstance.

This function initializes the global CBCGPTearOffManager object.

Parameters
lpszRegEntryThe registry entry for the tearoff bars.
uiCmdFirstSpecifies the first tear off menu ID.
uiCmdLastSpecifies the last tear off menu ID.