ebmDevMag.com home
ebm Developer's Magazine
links

developer's mag
main page

article
part 1
part 2
part 3
part 4
part 5
part 6


5 - Sample Code

The source code for this column (eg_9.zip) includes an example of using CMenuBar to manage multiple menus. While not really necessary for a subject as simple as this, it will compile cleanly, letting you tweak a known working version to suit your needs (my preferred way of learning a subject). Making the program work with a single menu is simple:

  1. Remove all references to the menu bar, and to all but one menu
  2. Replace the delete call in the window's destructor for the remaining menu
  3. Have the MSG_KEY handler now test and show the menu


Previous Section
Next Section

Copyright © 2001-2006 ebmDevMag.com - Legal Notice