Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

Chapter 5: The Document/View Architecture Visual C++ and MFC Fundamentals


Figure 54: Adding an Icon Resource........................................................................................



  1. Click New

  2. Design the 32x32 icon as follows:


Figure 55: Icon Design - DocView1........................................................................................



  1. Add a 16x16 icon and design it as follows:


Figure 56: Icon Design - DocView2........................................................................................



  1. Using the Properties window, change the ID of the icon to IDR_MAINFRAME

  2. Display the Add Resource dialog box and double-click Menu

  3. Change the ID of the menu from IDR_MENU1 to IDR_MAINFRAME

Free download pdf