Home Dashboard Directory Help
Search

CMFCToolBarsMenuPropertyPage SYSTEM_DEFAULT_ANIMATON fails to initialize by Dan VB


Status: 

Closed
 as Fixed Help for as Fixed


1
0
Sign in
to vote
Type: Bug
ID: 684318
Opened: 8/16/2011 5:53:03 AM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

BOOL CMFCToolBarsMenuPropertyPage::OnInitDialog()
{
    CPropertyPage::OnInitDialog();

    if (m_iMenuAnimationType == (int) CMFCPopupMenu::SYSTEM_DEFAULT_ANIMATION)
    {
        m_iMenuAnimationType = m_wndMenuAnimations.GetCount() - 1; <---- using wndMenuAnimations.GetCount prior to populating the list!
        UpdateData(FALSE);
    }

....

        // Add menu animation values
        CString strAnimation;

        ENSURE(strAnimation.LoadString(IDS_AFXBARRES_MENU_ANIMATION_NONE));
        m_wndMenuAnimations.InsertString(-1, strAnimation);
        ENSURE(strAnimation.LoadString(IDS_AFXBARRES_MENU_ANIMATION_UNFOLD));
        m_wndMenuAnimations.InsertString(-1, strAnimation);
        ENSURE(strAnimation.LoadString(IDS_AFXBARRES_MENU_ANIMATION_SLIDE));
        m_wndMenuAnimations.InsertString(-1, strAnimation);
        ENSURE(strAnimation.LoadString(IDS_AFXBARRES_MENU_ANIMATION_FADE));
        m_wndMenuAnimations.InsertString(-1, strAnimation);
        ENSURE(strAnimation.LoadString(IDS_AFXBARRES_MENU_ANIMATION_DEFAULT));
        m_wndMenuAnimations.InsertString(-1, strAnimation);

        UpdateData(FALSE);
        OnSelchangeMenuList();
    }
Details
Sign in to post a comment.
Posted by Microsoft on 10/28/2011 at 11:53 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-Moderator09 [Feedback Moderator] on 8/16/2011 at 11:35 PM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. Your issue has been routed to the appropriate VS development team for review. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 8/16/2011 at 6:41 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.