Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Visual Studio Fix: Incorrect TBBS_CHECKED value when an MFC application calls submenu methods in Visual Studio 2010 if the MF_CHECKED flag is set


Symptoms

Consider the following scenario:
  • You use Microsoft Visual Studio 2010 to develop a Microsoft Foundation Class (MFC) application that calls the CContextMenuManager::TrackPopupMenu method or the CContextMenuManager::ShowPopupMenu method.
  • The menu that corresponds to the HMENU parameter has one or more submenus.
  • One or more of the submenu items have the MF_CHECKED flag set.
  • You run the MFC application.
In this scenario, the TBBS_CHECKED flag is not set correctly for the submenus that had the MF_CHECKED flag set.

↑ Back to the top


Cause

The CMFCPopupMenuBar::ImportFromMenu method creates a CMFCToolBarMenuButton object, and the method uses the submenu as a parameter. When the CMFCToolBarMenuButton object is initialized, the MFCToolBarMenuButton::CreateFromMenu method is called. However, the CreateFromMenu method ignores the MF_CHECKED flag, and therefore the method sets an incorrect TBBS_CHECKED value.

↑ Back to the top


Resolution

Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

To apply this hotfix, you must have Visual Studio 2010 Service Pack 1 (SP1) installed.

Restart requirement

If any instance of Visual Studio 2010 is running when you apply this hotfix, you must restart the computer afterward.

Hotfix replacement information

This hotfix does not replace any other hotfix.

File Information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
For all supported versions of Visual Studio 2010
File nameFile versionFile sizeDateTimePlatform
Atl100.dll10.0.40219.369386,31207-Dec-201116:20IA-64
Atl100.dll10.0.40219.369139,01607-Dec-201116:36x86
Atl100.dll10.0.40219.369159,49607-Dec-201117:33x64
Mfc100.dll10.0.40219.3695,575,94407-Dec-201117:33x64
Mfc100.dll10.0.40219.3694,398,34407-Dec-201117:53x86
Mfc100chs.dll10.0.40219.36937,13607-Dec-201117:33x64
Mfc100chs.dll10.0.40219.36937,13607-Dec-201117:53x86
Mfc100cht.dll10.0.40219.36937,13607-Dec-201117:33x64
Mfc100cht.dll10.0.40219.36937,13607-Dec-201117:53x86
Mfc100d.dll10.0.40219.3699,134,85607-Dec-201119:09x64
Mfc100d.dll10.0.40219.3697,057,16007-Dec-201119:46x86
Mfc100deu.dll10.0.40219.36965,29607-Dec-201117:33x64
Mfc100deu.dll10.0.40219.36965,29607-Dec-201117:53x86
Mfc100enu.dll10.0.40219.36956,08007-Dec-201117:33x64
Mfc100enu.dll10.0.40219.36956,08007-Dec-201117:53x86
Mfc100esn.dll10.0.40219.36964,78407-Dec-201117:33x64
Mfc100esn.dll10.0.40219.36964,78407-Dec-201117:53x86
Mfc100fra.dll10.0.40219.36965,29607-Dec-201117:33x64
Mfc100fra.dll10.0.40219.36965,29607-Dec-201117:53x86
Mfc100ita.dll10.0.40219.36963,24807-Dec-201117:33x64
Mfc100ita.dll10.0.40219.36963,24807-Dec-201117:53x86
Mfc100jpn.dll10.0.40219.36944,81607-Dec-201117:33x64
Mfc100jpn.dll10.0.40219.36944,81607-Dec-201117:53x86
Mfc100kor.dll10.0.40219.36944,30407-Dec-201117:33x64
Mfc100kor.dll10.0.40219.36944,30407-Dec-201117:53x86
Mfc100rus.dll10.0.40219.36961,71207-Dec-201117:33x64
Mfc100rus.dll10.0.40219.36961,71207-Dec-201117:53x86
Mfc100u.dll10.0.40219.3695,603,08007-Dec-201117:33x64
Mfc100u.dll10.0.40219.3694,424,45607-Dec-201117:53x86
Mfc100ud.dll10.0.40219.3699,211,66407-Dec-201119:09x64
Mfc100ud.dll10.0.40219.3697,125,77607-Dec-201119:46x86
Mfcm100.dll10.0.40219.36993,96007-Dec-201117:33x64
Mfcm100.dll10.0.40219.36982,69607-Dec-201117:53x86
Mfcm100d.dll10.0.40219.369120,59207-Dec-201119:09x64
Mfcm100d.dll10.0.40219.369104,72007-Dec-201119:46x86
Mfcm100u.dll10.0.40219.36993,96807-Dec-201117:33x64
Mfcm100u.dll10.0.40219.36982,70407-Dec-201117:53x86
Mfcm100ud.dll10.0.40219.369122,12807-Dec-201119:09x64
Mfcm100ud.dll10.0.40219.369106,25607-Dec-201119:46x86
Mfcmifc80u.dll10.0.40219.36914,09608-Dec-201117:42x86
Msvcp100.dll10.0.40219.369967,44007-Dec-201116:20IA-64
Msvcp100.dll10.0.40219.369422,16007-Dec-201116:36x86
Msvcp100.dll10.0.40219.369609,04007-Dec-201117:33x64
Msvcp100d.dll10.0.40219.3691,980,17607-Dec-201118:38IA-64
Msvcp100d.dll10.0.40219.3691,015,56807-Dec-201119:16x64
Msvcp100d.dll10.0.40219.369744,72007-Dec-201119:52x86
Msvcr100_clr0400.dll10.0.40219.3691,500,43207-Dec-201116:20IA-64
Msvcr100_clr0400.dll10.0.40219.369774,41607-Dec-201116:36x86
Msvcr100_clr0400.dll10.0.40219.369830,22407-Dec-201117:33x64
Msvcr100d_clr0400.dll10.0.40219.3693,765,00807-Dec-201118:38IA-64
Msvcr100d_clr0400.dll10.0.40219.3691,874,19207-Dec-201119:16x64
Msvcr100d_clr0400.dll10.0.40219.3691,506,57607-Dec-201119:52x86
Vcomp100.dll10.0.40219.369144,14407-Dec-201116:20IA-64
Vcomp100.dll10.0.40219.36958,12807-Dec-201117:33x64
Vcomp100.dll10.0.40219.36951,98407-Dec-201117:53x86
Vcomp100d.dll10.0.40219.369317,71207-Dec-201118:33IA-64
Vcomp100d.dll10.0.40219.369107,79207-Dec-201119:01x64
Vcomp100d.dll10.0.40219.36988,84807-Dec-201119:40x86
Vcomp100ui.dll10.0.40219.36910,51208-Dec-201117:42x86
Vcomp100ui.dll10.0.40219.36911,02408-Dec-201117:42x86
Vcomp100ui.dll10.0.40219.36911,53608-Dec-201117:42x86
Vcomp100ui.dll10.0.40219.36912,56008-Dec-201117:42x86
Vcredist_ia64.exe10.0.40219.3693,045,47207-Dec-201121:23x86
Vcredist_x64.exe10.0.40219.36910,292,31207-Dec-201121:35x86
Vcredist_x86.exe10.0.40219.3699,009,75207-Dec-201121:40x86

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More Information

For more information about MFC applications, visit the following MSDN website:

↑ Back to the top


Keywords: kbqfe, kbfix, kbhotfixdev, kbhotfixserver, kbexpertiseadvanced, kbsurveynew, kb

↑ Back to the top

Article Info
Article ID : 2639247
Revision : 1
Created on : 1/7/2017
Published on : 3/27/2012
Exists online : False
Views : 107