Print Page | Close Window

How can i make xtptaskpanel group looks like this?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Visual C++ MFC
Forum Description: Topics related to Codejock Visual C++ MFC products
URL: http://forum.codejock.com/forum_posts.asp?TID=16658
Printed Date: 04 May 2024 at 11:48pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How can i make xtptaskpanel group looks like this?
Posted By: xtpuser
Subject: How can i make xtptaskpanel group looks like this?
Date Posted: 03 May 2010 at 2:01pm
I want to make my xtptaskpanel groups looks like this:



I writed the follow code to achieve my goals:

class CTaskPanelBkgGroup : public CXTPTaskPanelGroup
{
public:
     CTaskPanelBkgGroup(int id)
     {
          m_nBackgroundImage=id;
     }
};

CTaskPanelBkgGroup * pGroup=(CTaskPanelBkgGroup *)m_wndTaskPanel.GetGroups()->Add(new CTaskPanelBkgGroup(0),0);
pGroup->SetCaption("test);
pItem=pGroup->AddTextItem("test");
pItem->SetType(xtpTaskItemTypeLink);
pItem->SetID(0);

But it doesn't work,I get a access violation error when i tried to set the background image of the group.So there are two questions:

1.how can i set the background image of a xtptaskpanel group?

2.how can i set the background image of a xtptaskpanel?

thanks,



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