Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Task Panel
  New Posts New Posts RSS Feed - How to retrieve ControlItem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to retrieve ControlItem

 Post Reply Post Reply
Author
Message
mattf View Drop Down
Newbie
Newbie


Joined: 28 June 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote mattf Quote  Post ReplyReply Direct Link To This Post Topic: How to retrieve ControlItem
    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
Back to Top
mattf View Drop Down
Newbie
Newbie


Joined: 28 June 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote mattf Quote  Post ReplyReply Direct Link To This Post Posted: 24 August 2006 at 3:47am
Nobody to answer me?

what a shame!!!


PPllleeeeaaaasssssssseeeeeeeeeee.... help me!

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
mattf View Drop Down
Newbie
Newbie


Joined: 28 June 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote mattf Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 24 August 2006 at 10:53am
Hi,
Just save myCombo in members of parent dialog.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
mattf View Drop Down
Newbie
Newbie


Joined: 28 June 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote mattf Quote  Post ReplyReply Direct Link To This Post 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
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.188 seconds.