EnableFrameTheme() Access Violation |
Post Reply |
Author | |
ganeshbabu.cv
Newbie Joined: 24 March 2011 Status: Offline Points: 2 |
Post Options
Thanks(0)
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. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
As this assert suggest, you need set xtpThemeRibbon before you call this method. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
ganeshbabu.cv
Newbie Joined: 24 March 2011 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
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 } |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |