#include <windows.h>
#include <winver.h>    
#include "globals.h"
#include "toolbar.h"
#include "statbar.h"
#include "pendlg.h"
#include "brushdlg.h"
#include "colordlg.h"
#include "infodlg.h"
#include "print.h"
    
APPNAME ICON    ICONFILE
IDB_BMP BITMAP  TOOLBAR.BMP

; Bring in the dialogs:
RCINCLUDE ABOUT.DLG
RCINCLUDE PENDLG.DLG
RCINCLUDE BRUSHDLG.DLG
RCINCLUDE COLORDLG.DLG
RCINCLUDE INFODLG.DLG
RCINCLUDE SAVING.DLG
RCINCLUDE FILENEW.DLG 
RCINCLUDE PRINT.DLG

APPNAME MENU
BEGIN
  POPUP     "&File"
    BEGIN
      MENUITEM  "&New",             IDM_FILENEW
      MENUITEM  "&Open...",         IDM_FILEOPEN
      MENUITEM  "&Save",            IDM_FILESAVE
      MENUITEM  "Save &As...",      IDM_FILESAVEAS
      MENUITEM  "&Close",           IDM_FILECLOSE
      MENUITEM  SEPARATOR
      MENUITEM  "&Print",           IDM_FILEPRINT
      MENUITEM  "Page Se&tup...",   IDM_FILEPAGESU
      MENUITEM  "P&rint Setup...",  IDM_FILEPRINTSU
      MENUITEM  SEPARATOR
      MENUITEM  "E&xit",            IDM_EXIT
    END
           
    MENUITEM  "&Info!",             IDM_INFO
               
//  POPUP     "&Edit"
//    BEGIN
//      MENUITEM  "&Undo\tAlt+BkSp",  IDM_EDITUNDO,   GRAYED
//      MENUITEM  SEPARATOR
//      MENUITEM  "Cu&t\tShift+Del",  IDM_EDITCUT,    GRAYED
//      MENUITEM  "&Copy\tCtrl+Ins",  IDM_EDITCOPY,   GRAYED
//      MENUITEM  "&Paste\tShift+Ins",IDM_EDITPASTE,  GRAYED
//      MENUITEM  "&Delete\tDel",     IDM_EDITCLEAR,  GRAYED
//    END

  POPUP "&Draw"
    BEGIN
      MENUITEM  "Pi&xel",           IDM_PIXEL
      MENUITEM  "&Line",            IDM_LINE
      MENUITEM  "&Rect",            IDM_RECT
      MENUITEM  "&Ellipse",         IDM_ELLIPSE
      MENUITEM  "Be&zier",          IDM_BEZIER,
      MENUITEM  SEPARATOR
      MENUITEM  "&Fill Objects",    IDM_FILL
      MENUITEM  SEPARATOR
      MENUITEM  "&Pen Style...",    IDM_CREATEPEN
      MENUITEM  "&Brush Style...",  IDM_CREATEBRUSH  
      MENUITEM  SEPARATOR
      MENUITEM  "&Clear Screen",    IDM_CLEAR         
    END

  POPUP     "&Help"
    BEGIN
      MENUITEM  "&About...",        IDM_ABOUT
    END
END

; String table for sample

STRINGTABLE
BEGIN
    IDS_APPNAME,        SZAPPNAME
    IDS_DESCRIPTION,    SZDESCRIPTION
    IDS_READY,          "Ready"
    IDS_FILTERSTRING,   
        "Bitmaps(*.bmp;*.dib;*.rle)|*.bmp;*.dib;*.rle|All Files(*.*)|*.*|"
    IDS_SAVEASTITLE,    "Select file to save DIB to"
    IDS_UNTITLED,       "Untitled"   
    IDS_SAVECHANGES,    "Save bitmap changes to file?"
END

; String table for DIB errors 
STRINGTABLE
BEGIN
    ERR_NOT_DIB,            "Not a Windows DIB file!"
    ERR_UNSUPPORTEDFORMAT,  "Not a supported DIB format!"
    ERR_MEMORY,             "Couldn't allocate memory!"
    ERR_READ,               "Error reading file!" 
    ERR_SAVE,               "Error saving file!"
    ERR_LOCK,               "Error locking memory!"
    ERR_OPEN,               "Error opening file!"    
    ERR_CREATEPAL,          "Error creating palette!"
    ERR_GETDC,              "Error getting a DC!"
    ERR_FILENOTFOUND,       "File Not Found!"
    ERR_INVALIDHANDLE,      "Invalid Handle!"
    ERR_DIBFUNCTION,        "General Error on call to DIB function!"
    ERR_CREATEDIBSECTION,   "CreateDIBSection failed!"
    ERR_FILLCOLORTABLE,     "Error filling color table!"
    ERR_WIDTH,              "Must specify a bitmap width!"    
    ERR_HEIGHT,             "Must specify a bitmap height!"   
    ERR_STRETCHDIBITS,      "StretchDIBits failed!"
    ERR_UNDEFINEDERROR,     "Undefined Error!"
END

; String table for status bar strings

STRINGTABLE
BEGIN
    IDS_SYSMENU,        "Move, size, or close application window"
    SC_RESTORE,         "Restores the window to normal size"
    SC_MOVE,            "Changes the position of the window"
    SC_SIZE,            "Changes the size of the window"
    SC_MINIMIZE,        "Minimizes the window to an icon"
    SC_MAXIMIZE,        "Enlarges the window to full size"
    SC_CLOSE,           "Closes the window"
    SC_TASKLIST,        "Switches to another application through the Windows Task Manager"

    IDM_FILEMENU,       "Create, open, save, or print documents"
    IDM_FILENEW,        "Creates a new document"
    IDM_FILEOPEN,       "Opens an existing document"
    IDM_FILESAVE,       "Saves the active document"
    IDM_FILESAVEAS,     "Saves the active document under a different name"
    IDM_FILECLOSE,      "Closes the active document"
    IDM_FILEPRINT,      "Prints the active document"
    IDM_FILEPAGESU,     "Changes the page setup"
    IDM_FILEPRINTSU,    "Changes the printer selection or configuration"
    IDM_EXIT,           "Quits this application"

    IDM_EDITMENU,       "Undo, delete, copy, and insert"
    IDM_EDITUNDO,       "Reverses the last action"
    IDM_EDITCUT,        "Cuts the selection and puts it on the clipboard"
    IDM_EDITCOPY,       "Copies the selection and puts it on the clipboard"
    IDM_EDITPASTE,      "Inserts the clipboard contents at the insertion point"
    IDM_EDITCLEAR,      "Removes the selection without putting it on the clipboard"
        
    IDM_INFO,           "Show display device color information"
        
    IDM_DRAWMENU,       "Drawing Options"
    IDM_PIXEL,          "Draw individual pixels"
    IDM_LINE,           "Draw lines"
    IDM_RECT,           "Draw rectangles"
    IDM_ELLIPSE,        "Draw ellipses"
    IDM_BEZIER,         "Draw bezier curves"
    IDM_FILL,           "Use brush to fill closed objects"
    IDM_NOFILL,         "Don't fill closed objects"
    IDM_CREATEPEN,      "Set pen style"
    IDM_CREATEBRUSH,    "Set brush style"    

    IDM_HELPMENU,       "Get help"
    IDM_ABOUT,          "Displays information about this application"
END

; String table for brush dialog

STRINGTABLE
BEGIN
    IDD_HORIZONTAL,     "-- Horizontal"
    IDD_VERTICAL,       "|| Vertical"
    IDD_FDIAGONAL,      "\\\\ Diagonal"
    IDD_BDIAGONAL,      "// Diagonal"
    IDD_CROSS,          "++ Cross"
    IDD_DIAGCROSS,      "XX Cross"
END

; String table for pen dialog

STRINGTABLE
BEGIN
    IDD_SOLIDPEN,       "Solid"
    IDD_DASH,           "Dashed"
    IDD_DOT,            "Dotted"
    IDD_DASHDOT,        "Dash-Dot"
    IDD_DASHDOTDOT,     "Dash-Dot-Dot"
    IDD_NULLPEN,        "Null"
    IDD_INSIDEFRAME,    "Inside Frame"
END

APPNAME ACCELERATORS
BEGIN
    "Q", IDM_EXIT, CONTROL, VIRTKEY
END

               
; Version stamping information:

VS_VERSION_INFO VERSIONINFO
FILEVERSION     4,0,0,0
PRODUCTVERSION  4,0,0,0
FILEFLAGSMASK   VS_FFI_FILEFLAGSMASK
FILEFLAGS       (VS_FF_PRIVATEBUILD|VS_FF_PRERELEASE|VS_FF_DEBUG)
FILEOS          VOS_DOS_WINDOWS16
FILETYPE        VFT_APP
FILESUBTYPE     VFT2_UNKNOWN
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904E4"
        BEGIN
            VALUE SZRCOMPANYNAME,   "Microsoft Corporation\0"
            VALUE SZRDESCRIPTION,   SZDESCRIPTION "\0"
            VALUE SZRVERSION,       SZVERSION "\0"
            VALUE SZRAPPNAME,       SZAPPNAME "\0"
            VALUE SZRCOPYRIGHT,     "Copyright \251 Microsoft Corp. 1990-1994\0"
            VALUE SZRTRADEMARK,     "Microsoft\256 is a registered trademark of Microsoft Corporation. Windows(TM) is a trademark of Microsoft Corporation"
            VALUE SZRPRODNAME,      SZAPPNAME "\0"
            VALUE SZRPRODVER,       SZVERSION "\0"
        END
    END

    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1252
    END
END
