Chapter 3: Windows Resources Visual C++ and MFC Fundamentals
- Add a new menu resource as follows:
- 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) - Create a new Icon identified as IDR_MAINFRAME and design it as follows:
- Create a new accelerator table identified as IDR_MAINFRAME as follows:
- Create a String Table and add a string identified as IDR_MAINFRAME with a
Caption as Combined Resources - Create a new C++ source file and name it Main
- In the Main.cpp file, create the application as follows: