Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Skin Framework
  New Posts New Posts RSS Feed - Resize or repaint bug when using SkinFramework
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Resize or repaint bug when using SkinFramework

 Post Reply Post Reply
Author
Message
afekhar View Drop Down
Groupie
Groupie


Joined: 30 August 2006
Location: France
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote afekhar Quote  Post ReplyReply Direct Link To This Post Topic: Resize or repaint bug when using SkinFramework
    Posted: 01 September 2006 at 10:50am
Has anybody encountered 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.

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 05 September 2006 at 8:06am
Hi,
Send question to support with details what exactly resizing problem you have ( wish screenshots).
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.