Print Page | Close Window

Taskpanel using in COM Component gvs erro

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3758
Printed Date: 10 November 2025 at 1:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Taskpanel using in COM Component gvs erro
Posted By: jigarmehtamscit
Subject: Taskpanel using in COM Component gvs erro
Date Posted: 10 March 2006 at 2:12pm
Hi,

I am using CXTPTaskPanel in my ActiveX COM Component which is also written in Visual C++. In debug build, Task panel is initialized properly, its very fine till now, but, i am getting wincore.cpp (line 986) [snap attached] debug assertion failure, when I hover on the task panel. What I do is simply popping up the dialog on some event and in that dialog, only one task panel is there. I initialize the task panel through following code.

void CPropGridDlg::InitTaskPanel()   
{
    // TODO: Add your control notification handler code here
   
    //CXTPPaintManager::SetTheme(xtpThemeOffice2003);
    XTThemeManager()->SetTheme(xtThemeOffice2003);
   
    CRect    rectClientArea;
    RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0, CWnd::reposQuery, rectClientArea);
   
    CXTPClientRect rc(this);
    rc.top = rectClientArea.top + 5;
    rc.right = 150;
    rc.bottom = rc.bottom - 20;
   
    if (!m_wndTaskPanel.Create(WS_CHILD|WS_VISIBLE|WS_CLIPSIBLINGS| WS_CLIPCHILDREN, rc, this, IDD_PROPGRID_DIALOG))
    {
        MessageBox("Failed to create..");
    }
   
    //m_wndTaskPanel.SetTheme(xtpTaskPanelThemeNativeWinXPPlain) ;
    //m_wndTaskPanel.SetTheme(xtpTaskPanelThemeNativeWinXP);
    m_wndTaskPanel.SetTheme(xtpTaskPanelThemeShortcutBarOffice20 03);
    m_wndTaskPanel.SetOwner(this);
   
    CXTPTaskPanelGroup* pGroupLighting = m_wndTaskPanel.AddGroup(IDS_ABOUTBOX);
   
    pGroupLighting->AddLinkItem(IDS_ABOUTBOX, 0);
    pGroupLighting->AddLinkItem(IDS_ABOUTBOX, 1);
    pGroupLighting->AddLinkItem(IDS_ABOUTBOX, 2);
    m_wndTaskPanel.SetAnimation(xtpTaskPanelAnimationYes);
    m_wndTaskPanel.Reposition(TRUE);
}

The strange is, Task panel is initialized and shown properly but when I hover my mouse on any area of task panel, it gives this debug assertion error. please reply me at the earliest, what should I do to solve this..

I am using Visual Studio 6.0 (visual c++ 6.0)..

The debug assertion error I am getting is,





-------------
Regards,
Jigar Mehta



Replies:
Posted By: Oleg
Date Posted: 11 March 2006 at 12:42pm
Show Call Stack.

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


Posted By: jigarmehtamscit
Date Posted: 14 March 2006 at 2:56pm

Following is the call stack.. If i put the same thing in my dialog based application its working. Just in activeX control its not working and in activeX too, its giving debug error while hovering the mouse over the task panel area, till that time its perfect.

 // TODO: Add your control notification handler code here
 XTThemeManager()->SetTheme(xtThemeOffice2003);
 
 CRect rectClientArea;
 RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0, CWnd::reposQuery, rectClientArea);
 
 CXTPClientRect rc(this);
 rc.top = rectClientArea.top + 45;
 rc.right = 140;
 rc.bottom = rc.bottom - 40;
 
 if (!m_wndTaskPanel.Create(WS_CHILD|WS_VISIBLE|WS_CLIPSIBLINGS| WS_CLIPCHILDREN, rc, this, IDD_WC_PRINTPREVIEW_DLG))
 {
  MessageBox("Failed to create..");
 }
 
 m_wndTaskPanel.SetTheme(xtpTaskPanelThemeShortcutBarOf fice2003);
 m_wndTaskPanel.SetOwner(this);
 
 CXTPTaskPanelGroup* pGroup3DText = m_wndTaskPanel.AddGroup(IDS_WC_PP_GROUP_MARGINS);
 
 pGroup3DText->AddTextItem("Left");
 m_LeftMarginEdit.Initialize(this);
 m_LeftMarginEdit.SetParent(&m_wndTaskPanel);
 pGroup3DText->AddControlItem(m_LeftMarginEdit);

 pGroup3DText->AddTextItem("Right");
 m_RightMarginEdit.Initialize(this);
 //m_RightMarginEdit.SetParent(&m_wndTaskPanel);
 pGroup3DText->AddControlItem(m_RightMarginEdit);

 pGroup3DText->AddTextItem("Top");
 m_TopMarginEdit.Initialize(this);
 //m_TopMarginEdit.SetParent(&m_wndTaskPanel);
 pGroup3DText->AddControlItem(m_TopMarginEdit);

 pGroup3DText->AddTextItem("Bottom");
 m_BottomMarginEdit.Initialize(this);
 //m_BottomMarginEdit.SetParent(&m_wndTaskPanel);
 pGroup3DText->AddControlItem(m_BottomMarginEdit);

Can you tell me why it is happening ?

 



-------------
Regards,
Jigar Mehta


Posted By: jigarmehtamscit
Date Posted: 14 March 2006 at 2:57pm
Oh.. I think you mean something different by call stack. Can you please tell me how should I get call stack ?

-------------
Regards,
Jigar Mehta


Posted By: jigarmehtamscit
Date Posted: 14 March 2006 at 3:06pm

I think following information will be helpful to you..

Following are the lines debugger shown to me while breaking at assertion,

Now, providing you with call context..



-------------
Regards,
Jigar Mehta


Posted By: Oleg
Date Posted: 14 March 2006 at 3:53pm

What version of Toolkit do you have?

It looks like conflict of two MFC based ocx... Do you use another ocx in application or in your ocx?



-------------
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