Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Taskpanel using in COM Component gvs erro
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Taskpanel using in COM Component gvs erro

 Post Reply Post Reply
Author
Message
jigarmehtamscit View Drop Down
Groupie
Groupie
Avatar

Joined: 29 October 2005
Location: India
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote jigarmehtamscit Quote  Post ReplyReply Direct Link To This Post Topic: Taskpanel using in COM Component gvs erro
    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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 11 March 2006 at 12:42pm
Show Call Stack.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jigarmehtamscit View Drop Down
Groupie
Groupie
Avatar

Joined: 29 October 2005
Location: India
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote jigarmehtamscit Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
jigarmehtamscit View Drop Down
Groupie
Groupie
Avatar

Joined: 29 October 2005
Location: India
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote jigarmehtamscit Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
jigarmehtamscit View Drop Down
Groupie
Groupie
Avatar

Joined: 29 October 2005
Location: India
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote jigarmehtamscit Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
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.063 seconds.