Print Page | Close Window

CXTPTaskPanelGroup - adding pointers

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=8319
Printed Date: 13 November 2025 at 9:06pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPTaskPanelGroup - adding pointers
Posted By: vjedlicka
Subject: CXTPTaskPanelGroup - adding pointers
Date 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



Replies:
Posted By: jimmy
Date 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



Posted By: vjedlicka
Date Posted: 06 October 2007 at 7:56am
I need to add multiple pointers to a group.
 
Thank you anyway!
Vaclav


Posted By: kylechen
Date 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


Posted By: vjedlicka
Date 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.
 


Posted By: kylechen
Date Posted: 07 October 2007 at 12:45am

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



Posted By: vjedlicka
Date Posted: 08 October 2007 at 3:38am
ok, thank you!
Vaclav



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