Print Page | Close Window

Resize problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=4938
Printed Date: 29 April 2024 at 12:03am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Resize problem
Posted By: afekhar
Subject: Resize problem
Date Posted: 31 August 2006 at 12:27pm
Has anybody encoutered a resize or repaint bug when using SkinFramework and fix the problem?

I'm using this portion of code to create the skinframework object in CMainFrame::OnCreate(...) :

CComPtr<IUnknown> pIUnknown;
    if (!SUCCEEDED(AtlAxCreateControlEx(
        OLESTR("Codejock.SkinFramework.10.3"),
        m_hWnd,
        NULL,
        NULL,
        &pIUnknown,
        __uuidof(XtremeSkinFramework::_DSkinFramework), NULL)))
    {
        MessageBox(_T("Create Control Codejock.SkinFramework failed!"));
        return FALSE;
    }

CComPtr<XtremeSkinFramework::_DSkinFramework> spSkinFramework;
   
    if (SUCCEEDED(pIUnknown.QueryInterface(&spSkinFramework)))
    {
        spSkinFramework->LoadSkin(_bstr_t("c:\\Office2007.cjstyles"),_bstr_t(""));
        spSkinFramework->ApplyWindow(HandleToLong(m_hWnd));

        XtremeSkinFramework::SkinFrameworkApplyOptions options=spSkinFramework->GetApplyOptions();
        options=(XtremeSkinFramework::SkinFrameworkApplyOptions)(options|XtremeSkinFramework::xtpSkinApplyMetrics);

        spSkinFramework->PutApplyOptions(options);
    }


Thank you very much,


Ahmed.



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