Search

Black area in tab control of CTabView and live taskbar preview window of a VS2010SP1 MFC MDI tabbed application by cpp-hacker

Closed
as Fixed Help for as Fixed

1
0
Sign in
to vote
Type: Bug
ID: 720671
Opened: 1/25/2012 12:55:13 AM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
0
Workaround(s)
0
User(s) can reproduce this bug
A black area appears in the tab control of a CTabView and the taskbar preview window of a VS2010SP1 MFC MDI tabbed application, if the feature EnableMDITabbedGroups(TRUE, ...) is added to the CMainFrame::OnCreate function.

I posted this problem already on the MSDN forum:
http://social.msdn.microsoft.com/Forums/en-US/vcmfcatl/thread/c59d8eb0-046a-464c-bf38-91499fd91110

and David Ching David Ching DC Software Design, Inc. (MVP) told me to report this problem to connect.
Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling version

Visual Studio 2010 SP1

Steps to reproduce

1) Load the sample "TabbedView" of Visual C++ 2008 Feature Pack in VS2010SP1
2) Start the application and add a second document with "New".
Look at the taskbar preview window you will see no black area in preview window.
Move the mouse over the preview window -> you will see no black area in the tabcontrol.
3) Add the following code to the OnCreate function of the MainFrame.cpp file and restart the application:
CMDITabInfo mdiTabParams;        <br/>        mdiTabParams.m_style = CMFCTabCtrl::STYLE_3D_ONENOTE; // other styles available...
        mdiTabParams.m_bActiveTabCloseButton = TRUE;     // set to FALSE to place close button at right of tab area
        mdiTabParams.m_bTabIcons = FALSE;    // set to TRUE to enable document icons on MDI tabs
        mdiTabParams.m_bAutoColor = TRUE;    // set to FALSE to disable auto-coloring of MDI tabs
        mdiTabParams.m_bDocumentMenu = TRUE; // enable the document menu at the right edge of the tab area
        mdiTabParams.m_bTabCustomTooltips = TRUE; // enable tool tips for MDI tabs
        EnableMDITabbedGroups(TRUE, mdiTabParams);

Start the application again and add a second document with "New".
Look at the taskbar preview windows you will see a black area in one of the preview windows.
Move the mouse over the preview windows -> you will see a black area in one of the documents (the inactive tab) in the tabcontrol of the application.

Product Language

English

Operating System

Windows 7

Operating System Language

German

Actual results

Black area in taskbar preview window and in TabCtrl of the application visible.

Expected results

NO black area in taskbar preview window and in TabCtrl of the application visible.
File Attachments
0 attachments
Sign in to post a comment.
Posted by cpp-hacker on 2/3/2012 at 6:30 AM
Is there a workaround for VS2010 SP1 available? I have the problem in a real application.
Thanks,
Andreas.
Posted by Microsoft on 2/2/2012 at 11:04 AM
Hello,

Thanks for the report. This issue has been fixed in MFC for the next major release of Visual Studio.

Pat Brenner
Visual C++ Libraries Development
Posted by MS-Moderator07 [Feedback Moderator] on 1/25/2012 at 7:22 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by MS-Moderator01 on 1/25/2012 at 1:44 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.