Print Page | Close Window

Skinframework problems

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=4961
Printed Date: 20 September 2024 at 8:47pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Skinframework problems
Posted By: afekhar
Subject: Skinframework problems
Date Posted: 04 September 2006 at 4:48am
I have display problems with the skinframework.

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);
    }


Can anyone tell me where is the problem with this manner of creating the skinframework object and why I have these display problems.

I Thank you in advance,

Ahmed.



Replies:
Posted By: Oleg
Date Posted: 05 September 2006 at 8:05am
Hello,
Send question to support with details what problem you see.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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