Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Task Panel
  New Posts New Posts RSS Feed - How catch click event?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How catch click event?

 Post Reply Post Reply
Author
Message
copycdx2 View Drop Down
Groupie
Groupie


Joined: 17 September 2008
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote copycdx2 Quote  Post ReplyReply Direct Link To This Post Topic: How catch click event?
    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?
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: 18 September 2008 at 2:56am

Hi,

Please check our samples first.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
copycdx2 View Drop Down
Groupie
Groupie


Joined: 17 September 2008
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote copycdx2 Quote  Post ReplyReply Direct Link To This Post 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)


 
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: 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
Back to Top
copycdx2 View Drop Down
Groupie
Groupie


Joined: 17 September 2008
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote copycdx2 Quote  Post ReplyReply Direct Link To This Post 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()
Back to Top
BastianPL View Drop Down
Groupie
Groupie
Avatar

Joined: 15 April 2006
Status: Offline
Points: 69
Post Options Post Options   Thanks (0) Thanks(0)   Quote BastianPL Quote  Post ReplyReply Direct Link To This Post Posted: 16 October 2008 at 7:08pm
WHy this is not working in dialog ?
Bastian
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: 17 October 2008 at 2:43am
It works.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.172 seconds.