Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPTaskPanelGroup - adding pointers
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPTaskPanelGroup - adding pointers

 Post Reply Post Reply
Author
Message
vjedlicka View Drop Down
Senior Member
Senior Member


Joined: 04 September 2007
Status: Offline
Points: 122
Post Options Post Options   Thanks (0) Thanks(0)   Quote vjedlicka Quote  Post ReplyReply Direct Link To This Post Topic: CXTPTaskPanelGroup - adding pointers
    Posted: 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
Back to Top
jimmy View Drop Down
Senior Member
Senior Member


Joined: 11 November 2003
Location: Austria
Status: Offline
Points: 516
Post Options Post Options   Thanks (0) Thanks(0)   Quote jimmy Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
vjedlicka View Drop Down
Senior Member
Senior Member


Joined: 04 September 2007
Status: Offline
Points: 122
Post Options Post Options   Thanks (0) Thanks(0)   Quote vjedlicka Quote  Post ReplyReply Direct Link To This Post Posted: 06 October 2007 at 7:56am
I need to add multiple pointers to a group.
 
Thank you anyway!
Vaclav
Back to Top
kylechen View Drop Down
Groupie
Groupie


Joined: 29 November 2004
Status: Offline
Points: 57
Post Options Post Options   Thanks (0) Thanks(0)   Quote kylechen Quote  Post ReplyReply Direct Link To This Post 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.
 
Originally posted by vjedlicka vjedlicka wrote:

I need to add multiple pointers to a group.
 
Thank you anyway!
Vaclav
Back to Top
vjedlicka View Drop Down
Senior Member
Senior Member


Joined: 04 September 2007
Status: Offline
Points: 122
Post Options Post Options   Thanks (0) Thanks(0)   Quote vjedlicka Quote  Post ReplyReply Direct Link To This Post 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.
 
Back to Top
kylechen View Drop Down
Groupie
Groupie


Joined: 29 November 2004
Status: Offline
Points: 57
Post Options Post Options   Thanks (0) Thanks(0)   Quote kylechen Quote  Post ReplyReply Direct Link To This Post Posted: 07 October 2007 at 12:45am

You can use each item's ItemData to store the pointer using CXTPTaskPanelItem::SetItemData as well.

Back to Top
vjedlicka View Drop Down
Senior Member
Senior Member


Joined: 04 September 2007
Status: Offline
Points: 122
Post Options Post Options   Thanks (0) Thanks(0)   Quote vjedlicka Quote  Post ReplyReply Direct Link To This Post Posted: 08 October 2007 at 3:38am
ok, thank you!
Vaclav
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.039 seconds.