Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

Chapter 3: Windows Resources Visual C++ and MFC Fundamentals



  1. Add a new menu resource as follows:

  2. Change the ID of the menu from IDR_MENU1 to IDR_MAINFRAME and save the
    resource as FrmLoad.rc
    If using MSVC 6, add the .rc file to the project (Project -> Add to Project -> File,
    Form Loader.rc)

  3. Create a new Icon identified as IDR_MAINFRAME and design it as follows:

  4. Create a new accelerator table identified as IDR_MAINFRAME as follows:

  5. Create a String Table and add a string identified as IDR_MAINFRAME with a
    Caption as Combined Resources

  6. Create a new C++ source file and name it Main

  7. In the Main.cpp file, create the application as follows:

Free download pdf