Print Page | Close Window

Drawing problem with Office2007 skin

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Visual C++ MFC
Forum Description: Topics related to Codejock Visual C++ MFC products
URL: http://forum.codejock.com/forum_posts.asp?TID=17257
Printed Date: 21 November 2024 at 7:37am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Drawing problem with Office2007 skin
Posted By: HTS10
Subject: Drawing problem with Office2007 skin
Date Posted: 16 September 2010 at 7:50am
Hi,

Open file dialog with Office2007 skin look like this:




This drawing problem (black area) can be seen with both Xtreme ToolkitPro VS2010 dlls (v.13.3.1 and v.13.4.0). You can reproduce this drawing problem with your own GallerySample-project by adding these bolded lines in to MainFrm.cpp (see below).


int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
    if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
        return -1;

--- Clip --- Clip --- Clip --- Clip --- Clip --- Clip --- Clip ---

--- Clip --- Clip --- Clip --- Clip --- Clip --- Clip --- Clip ---

    pCommandBars->GetImageManager()->SetIcons(IDR_MAINFRAME, IDR_MAINFRAME_LARGE);

    // Load and apply Office2007 skin and control style.
    VERIFY(XTPSkinManager()->LoadSkin("C:\\Program Files\\Codejock Software\\MFC\\Xtreme ToolkitPro v13.4.0\\Utils\\Styles\\Office2007.cjstyles", "NormalBlue.ini"));
    if (XTPSystemVersion()->IsWinVistaOrGreater())
    {
        XTPSkinManager()->Remove(m_hWnd);
    }
    else
    {
        XTPSkinManager()->ApplyWindow(m_hWnd);
    }

    XTPSkinManager()->SetAutoApplyNewWindows(true);

    pCommandBars->SetTheme(xtpThemeRibbon);
    EnableOffice2007Frame(GetCommandBars());
    pCommandBars->GetPaintManager()->m_bEnableAnimation = TRUE;


    LoadCommandBars(_T("CommandBars2"));
    return 0;
}





Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net