Print Page | Close Window

How to catch a simple left-click on a tray icon

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Visual C++ MFC Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=16860
Printed Date: 19 April 2024 at 12:33am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to catch a simple left-click on a tray icon
Posted By: radiumangel
Subject: How to catch a simple left-click on a tray icon
Date Posted: 21 June 2010 at 11:04am
Hi.

i've already looked in the samples but i couldn't find anything that helps. All that is done with the tray icon is showing menus and minimizing/maximizing the dialog. but that's not what i want to do. i simply want to show a PopupControl item when a simple left-click is made. i've searched for quite a while and couldn't find an answer. i know it sounds noobish and yes i am serious. can someone please help me?

my codejock version 13.3.1



Replies:
Posted By: Oleg
Date Posted: 23 June 2010 at 5:11am
Start from TrayIcon sample and add

     case WM_LBUTTONDOWN:
          return 1;

in OnTrayIconNotify method

-------------
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