Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC
  New Posts New Posts RSS Feed - How can i make xtptaskpanel group looks like this?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedHow can i make xtptaskpanel group looks like this?

 Post Reply Post Reply
Author
Message
xtpuser View Drop Down
Newbie
Newbie


Joined: 02 May 2010
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote xtpuser Quote  Post ReplyReply Direct Link To This Post Topic: How can i make xtptaskpanel group looks like this?
    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,
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.141 seconds.