Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTTrayicon issue
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTTrayicon issue

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


Joined: 02 May 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Maneesh Quote  Post ReplyReply Direct Link To This Post Topic: CXTTrayicon issue
    Posted: 22 September 2006 at 6:26am
Iam using xTremeToolkit version v9.60.1

I have used CXTTrayicon to show up an icon on the system tray,

I want t ohandle the left mouse click and the right mouse click on the system tray !
how do i do it !

Please help
Maneesh
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 22 September 2006 at 12:05pm
Hi,
 
TrayIcon show it. Please check it first.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Maneesh View Drop Down
Newbie
Newbie


Joined: 02 May 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Maneesh Quote  Post ReplyReply Direct Link To This Post Posted: 23 September 2006 at 4:56am
Hi Oleg.

Yes, the Icon does appear on the tray,
When I right click it does show the menu

But, I want to handle the left click on the same Icon

how do i handle the notifications?

What does SetNotificationWnd , SetCallbackMessage  do?
Should I implement them to check if left mouse is clicked ! if so how !

Please Help !

Thanks
Maneesh !
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 23 September 2006 at 10:35am
Hello,
in CMainFrame::OnTrayIconNotify of sample just add
case WM_LBUTTONDOWN:
 
to check Left button.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Maneesh View Drop Down
Newbie
Newbie


Joined: 02 May 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Maneesh Quote  Post ReplyReply Direct Link To This Post Posted: 25 September 2006 at 9:17am


Hi Oleg !

Thanks a lot! It worked !
Actualy I was referring the Dlg Sample and that did not have
a OnTrayNotify handler ! I then looked at some other sample
and there i find another sample SDI !

So I fixed it ! thanks a lot for all u r help
U are just Gr8 !

Thanks
Maneesh
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.047 seconds.