CMenuTearOffManager::Initialize
Initializes a CMenuTearOffManager object.
BOOL Initialize(
LPCTSTR lpszRegEntry,
UINT uiTearOffMenuFirst,
UINT uiTearOffMenuLast
);
Parameters
[in] lpszRegEntry
A string that contains the path of a registry entry. Your applications stores the settings for tear-off bars in this registry entry.[in] uiTearOffMenuFirst
The first menu ID for a tear-off menu.[in] uiTearOffMenuLast
The last menu ID for a tear-off menu.
Return Value
Nonzero if successful; otherwise 0.
Remarks
The range of menu IDs from uiTearOffMenuFirst to uiTearOffMenuLast must be a continuous interval. The interval defines the number of tear-off menus that can appear at the same time in the application.
Requirements
Header: afxmenutearoffmanager.h