Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - EnableFrameTheme() Access Violation
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

EnableFrameTheme() Access Violation

 Post Reply Post Reply
Author
Message
ganeshbabu.cv View Drop Down
Newbie
Newbie


Joined: 24 March 2011
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote ganeshbabu.cv Quote  Post ReplyReply Direct Link To This Post Topic: EnableFrameTheme() Access Violation
    Posted: 24 March 2011 at 7:31am
Hi,
I am using VS2005 and Codejock 11.02 version. When I create a ribbonbar I get an access violation when call is made to pRibbonBar->EnableFrameTheme(); function.

Any help would be appreciated.

Further I get ASSERT violations in XTPRibbonBar.cpp at line 273.

CXTPRibbonTheme* CXTPRibbonBar::GetRibbonPaintManager() const
{
    CXTPPaintManager* pPaintManager = GetPaintManager();
    ASSERT(pPaintManager->BaseTheme() == xtpThemeRibbon);

    return (CXTPRibbonTheme*)pPaintManager;
}

Please help me in fixing this issue.

Thanks in advance.


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: 25 March 2011 at 6:09am
Hi,

As this assert suggest, you need set xtpThemeRibbon before you call this method.


Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
ganeshbabu.cv View Drop Down
Newbie
Newbie


Joined: 24 March 2011
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote ganeshbabu.cv Quote  Post ReplyReply Direct Link To This Post Posted: 25 March 2011 at 6:10am
Hi Many thanks for the reply . . .I had set the style here is snapshot from OnCreate ()

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

    if (!CreateStatusBar())
        return -1;

    if (!InitCommandBars())
        return -1;

//Create ribbon bars
}
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.219 seconds.