Print Page | Close Window

How catch click event?

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=12178
Printed Date: 21 November 2024 at 12:56pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How catch click event?
Posted By: copycdx2
Subject: How catch click event?
Date 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?



Replies:
Posted By: Oleg
Date Posted: 18 September 2008 at 2:56am

Hi,

Please check our samples first.


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


Posted By: copycdx2
Date Posted: 18 September 2008 at 4:45am

 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)


 


Posted By: Oleg
Date Posted: 18 September 2008 at 6:08am
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


Posted By: copycdx2
Date Posted: 30 September 2008 at 2:42am
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()


Posted By: BastianPL
Date Posted: 16 October 2008 at 7:08pm
WHy this is not working in dialog ?

-------------
Bastian


Posted By: Oleg
Date Posted: 17 October 2008 at 2:43am
It works.

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



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