How catch click event? |
Post Reply |
Author | |
copycdx2
Groupie Joined: 17 September 2008 Status: Offline Points: 20 |
Post Options
Thanks(0)
Posted: 17 September 2008 at 9:01pm |
i use Task Panel in dialog. i insert following code in dialog on InitialUpdate function. pItem = pGroup->AddLinkItem(0, IDI_SENT_ITEMS); pItem->SetCaption(_T("Test 1")); i hope to catch in my dialog when user click item. how? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, Please check our samples first.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
copycdx2
Groupie Joined: 17 September 2008 Status: Offline Points: 20 |
Post Options
Thanks(0)
|
where is the reference sourcecode? please tell me. where is.... i found code with XTPWM_TASKPANEL_NOTIFY keyword. but, event not enter in code. LRESULT Cg3OutlookBarContainer::OnTaskPanelNotify(WPARAM wParam, LPARAM lParam) |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Yes you need add
ON_MESSAGE(XTPWM_TASKPANEL_NOTIFY, OnTaskPanelNotify)
in message map
and
LRESULT CYourDialog::OnTaskPanelNotify(WPARAM wParam, LPARAM lParam)
as member of your dialog. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
copycdx2
Groupie Joined: 17 September 2008 Status: Offline Points: 20 |
Post Options
Thanks(0)
|
of cause, I had typed.
but, not receive message. BEGIN_MESSAGE_MAP(Cg3OutlookBarContainer, CTaskPanelBase) //{{AFX_MSG_MAP(CTaskPanel) // NOTE - the ClassWizard will add and remove mapping macros here. ON_MESSAGE(XTPWM_TASKPANEL_NOTIFY, OnTaskPanelNotify) //}}AFX_MSG_MAP ON_WM_LBUTTONUP() END_MESSAGE_MAP() |
|
BastianPL
Groupie Joined: 15 April 2006 Status: Offline Points: 69 |
Post Options
Thanks(0)
|
WHy this is not working in dialog ?
|
|
Bastian
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
It works.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |