2.6.3 Creating the Resource-Definition File

The resource-definition file must contain the Help menu and the dialog box template for the About dialog box. Name the file GENERIC.RC. It should look like this:

#include <windows.h>
#include "generic.h"





GenericMenu MENU
BEGIN
    POPUP        "&Help"
    BEGIN
        MENUITEM "About Generic...", IDM_ABOUT
    END
END

AboutBox DIALOG 22, 17, 144, 75
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "About Generic"
BEGIN
    CTEXT "Microsoft Windows"     -1,   0,   5,  144,  8
    CTEXT "Generic Application"   -1,   0,  14,  144,  8
    CTEXT "Version 3.1"           -1,   0,  34,  144,  8
    DEFPUSHBUTTON "OK"           IDOK, 53, 59, 32, 14, WS_GROUP
END