Due to a restriction in the Win32 APIs, submenu arrows are always drawn, and always drawn enabled in owner drawn menus. Learn about a workaround for this situation.
Latest Miscellaneous Articles
Dynamic Items
Sample code that shows you how to dynamically add to and handle items on a menu. (The article was updated.)
Implementing Tooltips for Menus
Illustrates how to implement tooltips for menus by overriding some key CMainFrame functions
Merging Two Menus
Merging Two Menus
MRU list in a submenu: the MFC bug and how to correct it
an explanation about the MFC bug that prevents the MRU items to appear in a submenu and the fix.
Using MRU on submenu
Using MRU on submenu
Latest Developer Videos
More...Latest CodeGuru Developer Columns
C++ Tips and Tricks
Quirky and yet persistent, C++ is a language that keeps programmers coming back to it. Pick up some new ways to wrangle it into your workflow.

Working with Google Protocol Buffers and .NET
Learn about something called "Google Protocol Buffers," and watch for later posts on other IoT subjects.

Using WndProc to Override Mouse Functions
Learn how to use the simple, yet powerful, WndProc command and its associated methods to override various window and mouse functions.

Lesson Learned: The Need for a Domain Language
Translation costs time and money, and can affect the quality of the product being made. Make sure all your team members speak the same language.