Print Page | Close Window

How to retrieve ControlItem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Task Panel
Forum Description: Topics Related to Codejock Task Panel
URL: http://forum.codejock.com/forum_posts.asp?TID=4850
Printed Date: 04 May 2024 at 12:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to retrieve ControlItem
Posted By: mattf
Subject: How to retrieve ControlItem
Date Posted: 22 August 2006 at 10:37am
Hi,

I add a combo box by using pTaskPanelGroup->AddControlItem(myCombo).

But, how to retrieve it during notification (XTPWM_TASKPANEL_NOTIFY)?

thanks & regards,

Matt



Replies:
Posted By: mattf
Date Posted: 24 August 2006 at 3:47am
Nobody to answer me?

what a shame!!!


PPllleeeeaaaasssssssseeeeeeeeeee.... help me!



Posted By: Oleg
Date Posted: 24 August 2006 at 8:59am
Hi,
ComboBox sends its messages to parent class
 
Override CXTPTaskPanel and catch messages in derived class.
See in MSDN ON_CBN_SELCHANGE macros.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: mattf
Date Posted: 24 August 2006 at 10:27am
Ok to receive events.... but if I want to modify combo data?

CXTPTaskPanelGroupItem contents m_hWnd, reference on window control, but I can't get it after adding.

Do you think "you" can add a GetControlHwnd() in the next release?

very useful to update data!

thanks & regards,

Matt


Posted By: Oleg
Date Posted: 24 August 2006 at 10:53am
Hi,
Just save myCombo in members of parent dialog.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: mattf
Date Posted: 24 August 2006 at 12:00pm
I'm little disappointed by this kind of matter.

You provide SetItemData/GetItemData, but no way to get added control!

Well, fortunately for me, SetItemData/GetItemData are there!

thanks & regards,

Matt



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