Home Dashboard Directory Help
Search

Titlebar goes 'black' and unresponsive in an MFC 'Ribbon' application after (some) screensavers have run by OReubens


Status: 

Closed
 as Fixed Help for as Fixed


2
0
Sign in
to vote
Type: Bug
ID: 731341
Opened: 3/15/2012 6:18:00 AM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

In a ribbon based app, something causes the titlebar to "go away" after some screensavers have run.
Details
Sign in to post a comment.
Posted by Microsoft on 6/4/2012 at 10:51 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 hlszl on 3/26/2012 at 1:44 AM
I think the same promble is bothering me(using the RibbonGadgets sample in VS2008 feature pack):

Afther executing OpenOrCloseAero(True) to disable Areo effect and then OpenOrCloseAero(False), the bug is reproduced! Ribbon title bar become 'black', and double click the title bar, Maximize Function is unnormal too.

BOOL OpenOrCloseAero(BOOL open)
{
    {
        HRESULT hr = S_OK;
        if (open)
        {
            //enable DWM Composition
            hr = DwmEnableComposition(DWM_EC_ENABLECOMPOSITION);
            if (SUCCEEDED(hr))
                return TRUE;
            else
                return FALSE;
        }
        else
        {
            //Disable DWM Composition
            hr = DwmEnableComposition(DWM_EC_DISABLECOMPOSITION);
            if (SUCCEEDED(hr))
                return TRUE;
            else
                return FALSE;
        }
    }
    return FALSE;
}
Posted by OReubens on 3/19/2012 at 4:16 AM
I'm not aware of any software to make video to be installed on this version of Windows. There is Windows Moviemaker, but I'm not seeing any means to make a video from the desktop from that. How would you want this made ?

I've uploaded 3 screenshots showing the problem. I'm nto even sure a video would reveal much more than these would.
The machine is a multimonitor setup, I've cropped the image to only show monitor 2. This has VS2010 in the background.

1_NewlyStarted.png
This is the first image, it shows the MFC Ribbon application as it looks after creation via wizard , building and running.

2_After_Screensaver.png
How it looks after the "photos" screensaver has run. (by manually forcing a preview)
Notice the black titlebar.
Notice the odd looking frame, it's no longer "glass".
Notice the buttons in top right aren't visible. Clicking the place where the buttons should be, does nothing.

3_Maximized.png
When in the above state, clicking on the middle of the titlebar maximizes the application.
Note how the repainting isn't working properly, you can see VS2010 "through" the lower/right part of the application.
I've cropped this image to also reveal part of monitor 1. You can see part of a (non glass) frame bleeding into monitor 1.
When the screensaver didn't pop up, this behaves normally and nothing happens in monitor 1.
Posted by Microsoft on 3/19/2012 at 3:24 AM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. In order to efficiently investigate and reproduce this issue, we are requesting additional information outlined below.

Could you please give us a video of this issue so that we can conduct further research?

We look forward to hearing from you with this information.

Microsoft Visual Studio Connect Support Team
Posted by MS-Moderator07 [Feedback Moderator] on 3/15/2012 at 8:34 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 3/15/2012 at 6:53 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.
File Name Submitted By Submitted On File Size  
3_Maximized.png 3/19/2012 59 KB
2_After_Screensaver.png 3/19/2012 102 KB
1_Newly_Started.png 3/19/2012 135 KB