Called by the framework when a menu that has a tear-off bar is activated.
virtual BOOL OnTearOffMenu(
A pointer to the pop-up menu.
A pointer to the tear-off bar.
to allow the pop-up menu with the tear-off bar to be made activate; otherwise FALSE. The default is TRUE.
Override this function when you want to implement a special setup for the tear-off bar. The default implementation does nothing.