#include "\masm32V1\include\resource.h"

500                ICON    DISCARDABLE     "HexEdit.ico"
750                BITMAP  DISCARDABLE     "HexEditT2.bmp"

STRINGTABLE DISCARDABLE
BEGIN

/* toolbar tips */

    1000                               "New"
    1001                               "Open"
    1002                               "Save"
    1100                               "Cut"
    1101                               "Copy"
    1102                               "Paste"
    1103                               "Delete"
    1104                               "Undo edit."
    1105                               "Redo edit."
    1106                               "Find"
    1107                               "Find next match"
    1108                               "Find previous match"
    1109                               "Replace"
    1110                               "Hex offset address"
    1111                               "Dec offset address"
    1200                               "Opens another instance of this program"
    1300                               "Exit"
    2000                               "Goto address offset"
END

600               MENU    DISCARDABLE
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&New",               1000
        MENUITEM "&Open",              1001
        MENUITEM SEPARATOR
        MENUITEM "&Save",              1002
        MENUITEM "Save &As",           1003
        MENUITEM SEPARATOR
        MENUITEM "&Exit",              1300
    END
    POPUP "&Edit"
    BEGIN
        MENUITEM "Cu&t\tCtrl+x",       1100
        MENUITEM "&Copy\tCtrl+c",      1101
        MENUITEM "&Paste\tCtrl+v",     1102
        MENUITEM "&Delete\tDel",       1103
        MENUITEM SEPARATOR
        MENUITEM "&Undo\tCtrl+z",      1104
        MENUITEM "&Redo\tCtrl+w",      1105
        MENUITEM SEPARATOR
        MENUITEM "&Find\tCtrl+f",      1106
        MENUITEM "&Find Next\tF3",     1107, GRAYED
        MENUITEM "&Find Previous\tF4", 1108, GRAYED
        MENUITEM "&Replace\tCtrl+h",   1109
    END
        MENUITEM "&Options",           1120
    POPUP "&Notify"
    BEGIN
        MENUITEM "Turn &Insert Notify On", 1801
        MENUITEM "Turn &Delete Notify On", 1802
    END
    POPUP "&Tools"
    BEGIN
        MENUITEM "Key Translator",     1803
        MENUITEM "Calculator",         1804
    END
    POPUP "&Help"
    BEGIN
        MENUITEM "HexEdit &Help",      1900
        MENUITEM "&About",             1901
    END
END

601               MENU    DISCARDABLE
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&Save As",       404
        MENUITEM SEPARATOR
        MENUITEM "&Close Image",   405
    END
END

602               MENU    DISCARDABLE
BEGIN
    POPUP "&Align"    
    BEGIN
        MENUITEM "Tile Horizontal",406 
    END
END

603               MENU    DISCARDABLE
BEGIN
    POPUP "&Align"    
    BEGIN
        MENUITEM "Tile Horizontal",406 
    END
END

4114 ACCELERATORS
BEGIN
    "x",    1100,    VIRTKEY  , CONTROL
    "c",    1101,    VIRTKEY  , CONTROL
    "v",    1102,    VIRTKEY  , CONTROL
    "f",    1106,    VIRTKEY  , CONTROL
    "h",    1109,    VIRTKEY  , CONTROL
    VK_F3,  1107,    VIRTKEY
    VK_F4,  1108,    VIRTKEY
END

4100 DIALOG DISCARDABLE  0, 0, 119, 55
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | DS_3DLOOK | WS_SYSMENU
CAPTION "Enter The Offset Number"
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL         "", 81, "button", BS_GROUPBOX | WS_CHILD, 4, 0, 111, 34
    LTEXT           "Goto Offset:",-1,9,11,45,8
    CONTROL         "", 1201, "edit", ES_RIGHT | WS_CHILD | WS_BORDER, 50, 9, 59, 11
    CONTROL         "&Hex", 1202, "button", BS_AUTORADIOBUTTON | WS_CHILD, 50, 21, 28, 9 ;8
    CONTROL         "&Dec", 1203, "button", BS_AUTORADIOBUTTON | WS_CHILD, 82, 21, 26, 9 ;38
    CONTROL         "GO", IDOK, "button", BS_PUSHBUTTON | WS_BORDER, 4, 39, 50, 12
    CONTROL         "Cancel", IDCANCEL, "button", BS_PUSHBUTTON | WS_BORDER, 65, 39, 50, 12
END

4200 DIALOG LOADONCALL MOVEABLE DISCARDABLE 0, 0, 224, 93
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | DS_3DLOOK | WS_BORDER | WS_SYSMENU | WS_VISIBLE 
CAPTION "Find Desired Text"
FONT 8, "Helv"
BEGIN
    CONTROL "Find What:", 82, "button", WS_CHILD | BS_GROUPBOX, 4, 2, 216, 60
    RTEXT   "&Type:",-1, 10, 12, 20, 8
    CONTROL "&Hex", 31, "button", WS_CHILD | BS_AUTORADIOBUTTON, 35, 12, 28, 12
    CONTROL "&Ascii", 32, "button",WS_CHILD | BS_AUTORADIOBUTTON, 65, 12, 34, 12
    CONTROL "Find Next", 1205, "button", WS_CHILD | BS_PUSHBUTTON | WS_BORDER, 172, 27, 44, 12
    RTEXT   "&Value:",-1, 10, 28, 20, 8
    CONTROL "", 1206, "edit", ES_LEFT | WS_CHILD | WS_BORDER | ES_AUTOHSCROLL, 33, 27, 135, 12
    CONTROL "", 1207, "edit", ES_LEFT | WS_CHILD | WS_BORDER | ES_AUTOHSCROLL | ES_READONLY, 33, 43, 135, 12

    CONTROL "Match &case", 33, "button", WS_CHILD | BS_AUTOCHECKBOX, 8, 66, 75, 12
    CONTROL "Direction", 83, "button", WS_CHILD | BS_GROUPBOX, 95, 66, 68, 24
    CONTROL "&Up", 35, "button", WS_CHILD | BS_AUTORADIOBUTTON, 99, 74, 24, 12
    CONTROL "&Down", 36, "button", WS_CHILD | BS_AUTORADIOBUTTON, 126, 74, 34, 12
    CONTROL "Cancel", IDCANCEL, "button", WS_CHILD | BS_PUSHBUTTON, 172, 77, 44, 12
END

4201 DIALOG LOADONCALL MOVEABLE DISCARDABLE 0, 0, 234, 128
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | DS_3DLOOK | WS_BORDER | WS_SYSMENU | WS_VISIBLE 
CAPTION "Replace Selected Text"
FONT 8, "Helv"
BEGIN
    CONTROL "Find - Replace:", 82, "button", WS_CHILD | BS_GROUPBOX, 4, 2, 226, 95
    RTEXT   "&Type:",-1, 10, 12, 28, 8
    CONTROL "&Hex", 31, "button", WS_CHILD | BS_AUTORADIOBUTTON, 43, 12, 28, 12
    CONTROL "&Ascii", 32, "button",WS_CHILD | BS_AUTORADIOBUTTON, 73, 12, 34, 12
    CONTROL "Find Next", 1205, "button", WS_CHILD | BS_PUSHBUTTON | WS_BORDER, 180, 27, 44, 12
    RTEXT   "&Find:",-1, 10, 28, 28, 8
    CONTROL "", 1206, "edit", ES_LEFT | WS_CHILD | WS_BORDER | ES_AUTOHSCROLL, 41, 27, 135, 12
    CONTROL "", 1207, "edit", ES_LEFT | WS_CHILD | WS_BORDER | ES_AUTOHSCROLL | ES_READONLY, 41, 43, 135, 12

    CONTROL "Replace", 1208, "button", WS_CHILD | BS_PUSHBUTTON | WS_BORDER, 180, 62, 44, 12
    RTEXT   "&Replace:",-1, 10, 64, 28, 8
    CONTROL "", 1209, "edit", ES_LEFT | WS_CHILD | WS_BORDER | ES_AUTOHSCROLL, 41, 62, 135, 12
    CONTROL "", 1210, "edit", ES_LEFT | WS_CHILD | WS_BORDER | ES_AUTOHSCROLL | ES_READONLY, 41, 78, 135, 12

    CONTROL "Match &case", 33, "button", WS_CHILD | BS_AUTOCHECKBOX, 8, 101, 75, 12
    CONTROL "Direction", 83, "button", WS_CHILD | BS_GROUPBOX, 103, 101, 68, 24
    CONTROL "&Up", 35, "button", WS_CHILD | BS_AUTORADIOBUTTON, 107, 109, 24, 12
    CONTROL "&Down", 36, "button", WS_CHILD | BS_AUTORADIOBUTTON, 134, 109, 34, 12
    CONTROL "Cancel", IDCANCEL, "button", WS_CHILD | BS_PUSHBUTTON, 180, 112, 44, 12
END

4000 DIALOG LOADONCALL MOVEABLE DISCARDABLE 0, 0, 214, 152  ;169
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
CAPTION "Options"
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL         "Tab1",702,"SysTabControl32", 0, 0, 0, 214, 131 ; Controls the size of the dialogs ;148
    CONTROL         "Close",IDCANCEL, "button", BS_PUSHBUTTON | WS_BORDER, 90, 136, 35, 12  ;153
END

4800 DIALOG DISCARDABLE  12, 15, 187, 105  ;122
STYLE WS_CHILD

FONT 8, "MS Sans Serif"
BEGIN
    CONTROL         "Offset View", 81, "button", BS_GROUPBOX | WS_CHILD | WS_GROUP, 4, 2, 80, 58
    CONTROL         "Hexidecimal", 21, "button", BS_AUTORADIOBUTTON | WS_TABSTOP | WS_CHILD, 10, 10, 65, 12
    CONTROL         "Decimal", 22, "button", BS_AUTORADIOBUTTON | WS_TABSTOP | WS_CHILD, 10, 22, 65, 12
    CONTROL         "Apply", IDOK, "button", BS_PUSHBUTTON | WS_BORDER, 116, 63, 50, 12 ;64

    CONTROL         "Hex View", 82, "button", BS_GROUPBOX | WS_CHILD | WS_GROUP, 96, 2, 90, 58
    CONTROL         "Byte", 31, "button", BS_AUTORADIOBUTTON | WS_TABSTOP | WS_CHILD, 102, 10, 65, 12
    CONTROL         "Word", 32, "button", BS_AUTORADIOBUTTON | WS_TABSTOP | WS_CHILD, 102, 22, 65, 12
    CONTROL         "Double Word", 33, "button", BS_AUTORADIOBUTTON | WS_TABSTOP | WS_CHILD, 102, 34, 65, 12
    CONTROL         "Quad Word", 34, "button", BS_AUTORADIOBUTTON | WS_TABSTOP | WS_CHILD, 102, 46, 65, 12
END

4801 DIALOG DISCARDABLE  12, 15, 187, 105  ;122
STYLE WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL         "Color Controls", 81, "button", BS_GROUPBOX | WS_CHILD, 4, 2, 116, 101
    CONTROL         "Offset text", 41, "button", BS_PUSHBUTTON | WS_BORDER, 12, 14, 100, 12
    CONTROL         "Offset background", 42, "button", BS_PUSHBUTTON | WS_BORDER, 12, 27, 100, 12
    CONTROL         "Hex text", 43, "button", BS_PUSHBUTTON | WS_BORDER, 12, 42, 100, 12
    CONTROL         "Hex background", 44, "button", BS_PUSHBUTTON | WS_BORDER, 12, 55, 100, 12
    CONTROL         "Ascii text", 45, "button", BS_PUSHBUTTON | WS_BORDER, 12, 70, 100, 12
    CONTROL         "Ascii background", 46, "button", BS_PUSHBUTTON | WS_BORDER, 12, 83, 100, 12
    CONTROL         "Font Size", 82, "button", BS_GROUPBOX | WS_CHILD, 126, 2, 60, 101
    CONTROL         "Apply", 84, "button", BS_PUSHBUTTON | WS_BORDER, 139, 30, 33, 12
END

4802 DIALOG DISCARDABLE  10, 15, 194, 115  ;12, 15, 177, 105 ;122
STYLE WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL         "Compare Files", 80, "button", BS_GROUPBOX | WS_CHILD, 0, 2, 194, 99
    RTEXT           "Source:", -1, 5, 15, 26, 10
    CONTROL         "", 41, "edit", WS_CHILD | WS_BORDER | ES_AUTOHSCROLL, 34, 14, 136, 12
    CONTROL         "...", 81, "button", WS_CHILD | BS_PUSHBUTTON, 172, 14, 14, 12
    RTEXT           "Target:", -1, 5, 31, 26, 10
    CONTROL         "", 42, "edit", WS_CHILD | WS_BORDER | ES_AUTOHSCROLL, 34, 30, 136, 12
    CONTROL         "...", 82, "button", WS_CHILD | BS_PUSHBUTTON, 172, 30, 14, 12

    CONTROL         "&All", 30, "button", WS_CHILD | BS_AUTOCHECKBOX, 108, 50, 25, 12
    CONTROL         "&Hex", 31, "button", WS_CHILD | BS_AUTORADIOBUTTON, 134, 50, 25, 12
    CONTROL         "&Dec", 32, "button",WS_CHILD | BS_AUTORADIOBUTTON, 160, 50, 25, 12

    RTEXT           "Compare Length:", -1, 5, 50, 56, 10
    CONTROL         "1000", 43, "edit", WS_CHILD | WS_BORDER | ES_LOWERCASE | ES_AUTOHSCROLL, 64, 49, 40, 12

    RTEXT           "Source Offset:", -1, 5, 68, 56, 10
    CONTROL         "0", 44, "edit", WS_CHILD | WS_BORDER | ES_LOWERCASE | ES_AUTOHSCROLL, 64, 67, 40, 12
    RTEXT           "Target Offset:", -1, 5, 84, 56, 10
    CONTROL         "0", 45, "edit", WS_CHILD | WS_BORDER | ES_LOWERCASE | ES_AUTOHSCROLL, 64, 83, 40, 12
    RTEXT           "File size:", -1, 104, 68, 40, 10
    CONTROL         "0", 46, "edit", WS_CHILD | WS_BORDER | ES_READONLY | ES_AUTOHSCROLL, 146, 67, 40, 12
    RTEXT           "File size:", -1, 104, 84, 40, 10
    CONTROL         "0", 47, "edit", WS_CHILD | WS_BORDER | ES_READONLY | ES_AUTOHSCROLL, 146, 83, 40, 12
    CONTROL         "Compare", 83, "button", BS_PUSHBUTTON | WS_BORDER, 80, 102, 35, 12
END

;    CONTROL         "", 401,"listbox", WS_BORDER | WS_VSCROLL | LBS_HASSTRINGS | LBS_MULTIPLESEL | LBS_SORT | LBS_DISABLENOSCROLL,

4803 DIALOG DISCARDABLE  10, 15, 194, 115  ;12, 15, 177, 105 ;122
STYLE WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL         "Resource Images From PE Type Files", 80, "button", BS_GROUPBOX | WS_CHILD, 0, 2, 194, 99
    CTEXT           "CURSORS", -1, 17, 13, 35, 10
    CTEXT           "BITMAPS", -1, 79, 13, 35, 10
    CTEXT           "ICONS", -1, 140, 13, 35, 10
    CONTROL         "", 401,"listbox", WS_BORDER | WS_VSCROLL | LBS_HASSTRINGS | LBS_SORT | LBS_DISABLENOSCROLL,
                    5, 22, 59, 65
    CONTROL         "", 402,"listbox", WS_BORDER | WS_VSCROLL | LBS_HASSTRINGS | LBS_SORT | LBS_DISABLENOSCROLL,
                    68, 22, 58, 65
    CONTROL         "", 403,"listbox", WS_BORDER | WS_VSCROLL | LBS_HASSTRINGS | LBS_SORT | LBS_DISABLENOSCROLL,
                    129, 22, 59, 65
    CONTROL         "First Extract  '.exe, .dll, .ocx, or .scr '  Images", 81, "button", BS_PUSHBUTTON | WS_BORDER, 12, 84, 170, 12
    CONTROL         "Then Make A Selection And Press Me To Display ", 82, "button", BS_PUSHBUTTON | WS_BORDER, 12, 102, 170, 12
END

4808 DIALOG LOADONCALL MOVEABLE DISCARDABLE 80, 17, 138, 68 ;170, 17, 78, 66
STYLE WS_BORDER | WS_CAPTION | DS_MODALFRAME | WS_POPUP | WS_SYSMENU | DS_3DLOOK | WS_VISIBLE
CAPTION " Key Translation"
FONT 8, "MS Sans Serif"
BEGIN
    LTEXT           "Press A Key To Translate:", -1, 4, 2, 70, 20
    CONTROL         "", 1216, "edit", WS_CHILD | WS_BORDER | ES_CENTER, 25, 22, 18, 12
    CONTROL         "", 41, "edit", WS_CHILD | WS_BORDER | ES_CENTER | ES_READONLY, 25, 38, 18, 12
    CONTROL         "", 42, "edit", WS_CHILD | WS_BORDER | ES_CENTER | ES_READONLY, 25, 52, 18, 12
    LTEXT           "KEY:", -1, 4, 24, 19, 10
    LTEXT           "DEC:", -1, 4, 40, 19, 10
    LTEXT           "HEX:", -1, 4, 54, 19, 10
    LTEXT           "LF: = 0ah", -1, 45, 54, 35, 8 ;10
    LTEXT           "&Or       Enter A Value:", -1, 67, 2, 100, 20
    CONTROL         "&Hex", 31, "button", WS_CHILD | BS_AUTORADIOBUTTON, 79, 10, 27, 12
    CONTROL         "&Ascii", 32, "button",WS_CHILD | BS_AUTORADIOBUTTON, 105, 10, 34, 12
    LTEXT           "&Value:", -1, 55, 24, 20, 8
    CONTROL         "", 1217, "edit", WS_CHILD | WS_BORDER | ES_UPPERCASE | ES_CENTER | ES_AUTOHSCROLL, 80, 22, 20, 12
;    CONTROL         "Enter", 1218, "button", BS_PUSHBUTTON | WS_BORDER, 102, 22, 32, 12
    LTEXT           "0 - FF   Hex", -1, 80, 37, 40, 10
    LTEXT           "0 - 255 Dec", -1, 80, 45, 40, 10
END

4820 DIALOG LOADONCALL MOVEABLE DISCARDABLE -2, -2, 40, 20
STYLE WS_POPUP | WS_VISIBLE | WS_BORDER | DS_MODALFRAME | DS_3DLOOK | DS_SYSMODAL
BEGIN
END
