![]() |
CXTPTaskPanelGroup - adding pointers |
Post Reply
|
| Author | |
vjedlicka
Senior Member
Joined: 04 September 2007 Status: Offline Points: 122 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPTaskPanelGroup - adding pointersPosted: 05 October 2007 at 2:41pm |
|
Hello,
I am thinking about keeping a list of objects in a CXTPTaskPanelGroup. Is it possible to add pointers to it? Something like
Object * pObject = ...
CXTPTaskPanelGroup pGroup->AddPointer(pObject)
Vaclav
|
|
![]() |
|
jimmy
Senior Member
Joined: 11 November 2003 Location: Austria Status: Offline Points: 516 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 October 2007 at 7:28pm |
|
Hello,
i think you can use pGroup->SetItemData( (DWORD_PTR) pObject ); and Object *pObject = (Object *) pGroup->GetItemData(); greetings from Austria Jimmy |
|
![]() |
|
vjedlicka
Senior Member
Joined: 04 September 2007 Status: Offline Points: 122 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 October 2007 at 7:56am |
|
I need to add multiple pointers to a group.
Thank you anyway!
Vaclav
|
|
![]() |
|
kylechen
Groupie
Joined: 29 November 2004 Status: Offline Points: 57 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 October 2007 at 8:07am |
|
Write a class to hold the "multiple pointers" and use itemdata to store pointer of the class object.
|
|
![]() |
|
vjedlicka
Senior Member
Joined: 04 September 2007 Status: Offline Points: 122 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 October 2007 at 8:54am |
|
Well, I need one pointer to represent one item in the group.
It is a drawing application. Each shape would represent one item in a group. Each layer would repesent one group. I would be able to change the order of the shapes in the drawing by dragging the items in the list.
|
|
![]() |
|
kylechen
Groupie
Joined: 29 November 2004 Status: Offline Points: 57 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 October 2007 at 12:45am |
|
You can use each item's ItemData to store the pointer using CXTPTaskPanelItem::SetItemData as well. |
|
![]() |
|
vjedlicka
Senior Member
Joined: 04 September 2007 Status: Offline Points: 122 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 October 2007 at 3:38am |
|
ok, thank you!
Vaclav
|
|
![]() |
|
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 |