How can i make xtptaskpanel group looks like this? |
Post Reply |
Author | |
xtpuser
Newbie Joined: 02 May 2010 Status: Offline Points: 7 |
Post Options
Thanks(0)
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, |
|
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 |