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.