Print Page | Close Window

Icons on system tray menu

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=2595
Printed Date: 06 October 2024 at 1:58am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Icons on system tray menu
Posted By: Jaws
Subject: Icons on system tray menu
Date Posted: 19 July 2005 at 5:33am

I'm developing a dialog based VC++ application and I've used CXTTrayIcon to place an icon and a popup menu in Windows Sys Tray. It works fine but I'd like to apply Office 2003 Style and icons to the popup menu as like as Tray Icon Demo sample. The problem is that my popup menu isn't associate to any toolbar on the main dialog and it contains function that I want make available only by using the popup menu.

How can I do it?

Thank you




Replies:
Posted By: Oleg
Date Posted: 19 July 2005 at 7:53am

See TrayIcon Demo. You can add new popup menu and use it.

CMenu menu;

if (!menu.LoadMenu(IDR_POPUP_TRAY)) {

return 0;

}

CMenu* pSubMenu = menu.GetSubMenu(0);

if (pSubMenu == NULL) {

return 0;

}



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