Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Home » Tip Bank » C++
Language: C++
Expertise: Beginner
Mar 13, 1998



Application Security Testing: An Integral Part of DevOps

System Tray

Can you program C++ to allow a program run in the system tray (next to the clock) like VB? If so, is there sample code somewhere?

This task is easier to do in C than it is in VB. Unfortunately, the code to do this is a little long to fit here.

Basically, you should use the Shell_NotifyIcon API function to add, modify, and remove icons from the system tray (or taskbar notification area). This function takes two arguments: either NIM_ADD, NIM_DELETE, or NIM_MODIFY to indicate the action you want to take, and a pointer to a NOTIFYICONDATA structure that specifies the icon and other information about the icon you are placing on the taskbar.

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date