Home arrow C++ arrow Modifying the System Menu in C++ with MFC

Modifying the System Menu in C++ with MFC

Did you know that you can modify the Windows system menu from C++ using MFC? In this article Ben shows you exactly how to do it.

Author Info:
By: Ben Watson
Rating: 4 stars4 stars4 stars4 stars4 stars / 23
January 01, 2003
  1. · Modifying the System Menu in C++ with MFC
  2. · Modifying the System Menu in C with MFC
  3. · Conclusion

print this article

Modifying the System Menu in C++ with MFC
(Page 1 of 3 )

The system menu is a standard feature of every Windows application. It is managed by Windows so normally we don't have to worry about it at all. However, sometimes it is nice to be able to modify the system menu according to our own program with things that Windows can't automatically do for us.

As my main example, I will be using a tool I've created called BabelOn. This is a C++/MFC program that accesses a web-service to translate text into foreign languages. It uses a toolbox window, so we don't see the system menu icon in the upper-left corner, however the menu can still be accessed with Ctrl-Space or by right-clicking on the title bar. The menu has been modified to contain two extra commands: About BabelOn, and Exit. Exit is needed because the default action for close (Alt-F4) has been overridden in the program to hide the window and allow tray access.
blog comments powered by Disqus

- Intel Threading Building Blocks
- Threading Building Blocks with C++
- Video Memory Programming in Text Mode
- More Tricks to Gain Speed in Programming Con...
- Easy and Efficient Programming for Contests
- Preparing For Programming Contests
- Programming Contests: Why Bother?
- Polymorphism in C++
- Overview of Virtual Functions
- Inheritance in C++
- Extending the Basic Streams in C++
- Using Stringstreams in C++
- Custom Stream Manipulation in C++
- General Stream Manipulation in C++
- Serialize Your Class into Streams in C++

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials