It's better to use m_bVistaMenus instead of _WTL_CMDBAR_VISTA_MENUS.