#include <RESOURCE.H>

// Constants for menu
#define   IDC_STATIC  -1

#define   IDM_EXIT    2
#define   IDM_COLOR   3
#define   IDB_TOOL    7002
#define   IDB_TOOLS   7003

#define   IDM_CUT     1005
#define   IDM_COPY    1006
#define   IDM_PASTE   1007
#define   IDM_DEL     1008
#define   IDM_SELALL  1009


898                     CURSOR  DISCARDABLE     "Res\\SplitV.cur"
899                     CURSOR  DISCARDABLE     "Res\\SplitH.cur"
901                     BITMAP  DISCARDABLE     "Res\\Pat2.bmp"
902                     BITMAP  DISCARDABLE     "Res\\Pat3.bmp"
903                     BITMAP  DISCARDABLE     "Res\\Pat4.bmp"
904                     BITMAP  DISCARDABLE     "Res\\Pat6.bmp"
IDB_TOOL                BITMAP  DISCARDABLE     "Res\\Toolbar.bmp"
IDB_TOOLS               BITMAP  DISCARDABLE     "Res\\ToolbarS.bmp"
8808                    BITMAP  DISCARDABLE     "Res\\DArrow.bmp"
8809                    BITMAP  DISCARDABLE     "Res\\Argyle.bmp"
8810                    ICON    DISCARDABLE     "Res\\AsmEdit.ico"

STRINGTABLE DISCARDABLE
BEGIN

/* toolbar tips */

    7501     "Draw a dialog"
    7502     "Static"
    7503     "GroupBox"
    7504     "Radio button"
    7505     "CheckBox"
    7506     "Button"
    7507     "Edit"
    7508     "Rich edit"
    7509     "ComboBox"
    7510     "ListBox"
    7511     "Treeview"
    7512     "Listview"
    7513     "Toolbar"
    7514     "Statusbar"
    7515     "HScroll"
    7516     "VScroll"
    7517     "Progessbar"
    7518     "Trackbar"
    7519     "UpDown"
    7520     "Tab Ctrl"
    7521     "Month view"
    7522     "Date/Time picker"
    7523     "Bitmap"
    7524     "Icon"
    7525     "Animated Icon"
    7526     "Animated Ctrl"
    7527     "IP Address Ctrl"
    7528     "Hot Key Ctrl"
    7529     "Custom Ctrl"
    7530     "N/A"
END

PopupMenu  MENU DISCARDABLE
BEGIN
   POPUP "&Edit"
   BEGIN
      MENUITEM "Cu&t",             IDM_CUT
      MENUITEM "&Copy",            IDM_COPY
      MENUITEM "&Paste",           IDM_PASTE
      MENUITEM "&Delete",          IDM_DEL
      MENUITEM SEPARATOR                        
      MENUITEM "&Select All",      IDM_SELALL
   END
END

ResourceMenu  MENU DISCARDABLE
BEGIN
   POPUP "&Edit"
   BEGIN
      MENUITEM "&Copy",            IDM_COPY
      MENUITEM "&Paste",           IDM_PASTE
      MENUITEM SEPARATOR
      MENUITEM "&Delete Control",  IDM_DEL
   END
END

FileMenu  MENU DISCARDABLE
BEGIN
    POPUP "&File"
    BEGIN
       MENUITEM "&Open",             3002
       MENUITEM SEPARATOR
;       MENUITEM "&Save\tF4",         3003
;       MENUITEM "Save &As\tCtrl+F4", 3004
    END
END

3100  MENU DISCARDABLE
BEGIN
    POPUP "&File"
    BEGIN
       MENUITEM "&New",              3001
       MENUITEM "&Open",             3002
       MENUITEM SEPARATOR
       MENUITEM "&Save\tF4",         3003
       MENUITEM "Save &As\tCtrl+F4", 3004, GRAYED
       MENUITEM SEPARATOR
       MENUITEM "&Exit\tF3",         3005
    END
END

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

;WS_POPUP
4000 DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 0, 0, 135, 286 ;263
FONT 8, "MS Sans Serif"
STYLE DS_MODALFRAME | WS_CHILD | WS_CLIPSIBLINGS
EXSTYLE WS_EX_TOOLWINDOW | WS_EX_WINDOWEDGE
BEGIN
    CONTROL "Tab1", 702, "SysTabControl32", TCS_MULTILINE, 0, 0, 135, 300 ;292 ; Controls the size of the dlgs
;    CONTROL "EXIT", IDCANCEL, "button", WS_CHILD, 50, 295, 35, 10

END

4801 DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 1, 24, 132, 273 ;265
FONT 8, "MS Sans Serif"
STYLE WS_CHILD
BEGIN
    LTEXT   "Select the type of Resource:", -1, 6, 40, 110, 8
    LTEXT   "Start ID", -1, 96, 15, 30, 8
    CONTROL "", 511, "edit", WS_CHILD | WS_BORDER | ES_AUTOHSCROLL, 96, 23, 30, 10
    CONTROL "Bitmap", 601, "button", WS_CHILD | BS_AUTORADIOBUTTON, 6, 50, 100, 10
    CONTROL "Icon", 602, "button", WS_CHILD | BS_AUTORADIOBUTTON, 6, 60, 100, 10
    CONTROL "Cursor", 603, "button", WS_CHILD | BS_AUTORADIOBUTTON, 6, 70, 100, 10
    CONTROL "Wave", 604, "button", WS_CHILD | BS_AUTORADIOBUTTON, 6, 80, 100, 10
    CONTROL "Midi", 605, "button", WS_CHILD | BS_AUTORADIOBUTTON, 6, 90, 100, 10
    LTEXT   "Resource ID", -1, 6, 102, 140, 8
    CONTROL "", 501, "edit", WS_CHILD | ES_AUTOHSCROLL | ES_UPPERCASE | WS_BORDER, 6, 110, 83, 12
    LTEXT   "e.g. IDI_UP", -1, 90, 112, 50, 8
    LTEXT   "Enter file name or browse", -1, 6, 126, 140, 8
    CONTROL "", 502, "edit", WS_CHILD | ES_AUTOHSCROLL | WS_BORDER, 6, 134, 83, 12
    CONTROL "Browse", 606, "button", BS_PUSHBUTTON | WS_BORDER, 92, 134, 35, 12
    CONTROL "Create", 607, "button", BS_PUSHBUTTON | WS_BORDER, 27, 155, 80, 12
END

4802 DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 1, 24, 132, 273 ;265
STYLE WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
    LTEXT   "Menu Name or ID", -1, 6, 15, 80, 8
    CONTROL "", 501, "edit", WS_CHILD | WS_BORDER | ES_AUTOHSCROLL, 6, 23, 60, 10
    LTEXT   "Start ID", -1, 96, 15, 30, 8
    CONTROL "", 511, "edit", WS_CHILD | WS_BORDER | ES_AUTOHSCROLL, 96, 23, 30, 10
    CONTROL "Begin Or New Menu", 601, "button", WS_BORDER | BS_PUSHBUTTON, 6, 34, 80, 12
    LTEXT   "Popup Name", -1, 20, 52, 80, 8
    CONTROL "", 502, "edit", WS_CHILD | ES_AUTOHSCROLL | WS_TABSTOP, 20, 61, 80, 9
    CONTROL "POPUP", 602, "button", BS_PUSHBUTTON, 20, 72, 80, 10
    CONTROL "BEGIN", 603, "button", BS_PUSHBUTTON, 20, 84, 80, 10
    LTEXT   "Item Name", -1, 30, 96, 80, 8
    CONTROL "", 503, "edit", WS_CHILD | ES_AUTOHSCROLL | WS_TABSTOP, 30, 104, 95, 9
    LTEXT   "Accelerator Key(s)", -1, 30, 114, 80, 8
    CONTROL "", 504, "edit", WS_CHILD | ES_AUTOHSCROLL | WS_TABSTOP, 30, 122, 50, 9
    LTEXT   "e.g. Ctrl+n,F4", -1, 83, 122, 50, 8
    LTEXT   "IDName | Item ID", -1, 30, 132, 80, 8
    CONTROL "", 505, "edit", WS_CHILD | ES_AUTOHSCROLL | ES_UPPERCASE | WS_TABSTOP, 30, 140, 54, 9

    LTEXT   "State", -1, 86, 132, 40, 8
    CONTROL "", 506, "edit", WS_CHILD | ES_AUTOHSCROLL | ES_UPPERCASE | WS_TABSTOP, 86, 140, 39, 9

    CONTROL "MENUITEM", 604, "button", BS_PUSHBUTTON, 30, 151, 80, 10
    CONTROL "SEPERATOR", 605, "button", BS_PUSHBUTTON, 30, 163, 80, 10
    CONTROL "END", 606, "button", BS_PUSHBUTTON, 20, 175, 80, 10
    CONTROL "End Menu", 607, "button", WS_BORDER | BS_PUSHBUTTON, 6, 194, 80, 12
    LTEXT   "[IDName | Item ID]  e.g. IDM_CUT or 304", -1, 6, 215, 120, 16
    LTEXT   "[State]  e.g. DISABLED - GRAYED - CHECKED, etc", -1, 6, 233, 120, 16
END

4803 DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 1, 24, 132, 273 ;265
STYLE WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
END

4804 DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 1, 24, 132, 273 ;265
;CAPTION ""
FONT    8, "MS Sans Serif"
STYLE   0x40000000
EXSTYLE 0x00000000
BEGIN
    CONTROL "",431,"button",0x54000007,4,0,124,271,0x00000000
    CONTROL "Convert the numerical ID name to a friendly name on the extract.",606,"button",0x50012303,12,20,100,24,0x00000000
    CONTROL "Select A Resource File",601,"button",0x50800000,9,52,114,12,0x00000000
    CONTROL "Extract All Of The Dialogs",602,"button",0x50800000,9,68,114,12,0x00000000
    CONTROL "Extract A Selected Dialog",603,"button",0x50800000,9,84,114,12,0x00000000
    CONTROL "Extract Resources From Bin Files",607,"button",0x50800000,9,100,114,12,0x00000000
    CONTROL "Save The Resource File",604,"button",0x50800000,9,116,114,12,0x00000000
    CONTROL "Clear All Dialogs From Memory",605,"button",0x50800000,9,134,114,12,0x00000000
    CONTROL "Dialog(s) extracted:",IDC_STATIC,"static",0x50000100,9,152,70,8,0x00000000
    CONTROL "Control(s) extracted:",IDC_STATIC,"static",0x50000100,9,162,70,8,0x00000000
    CONTROL "Item(s) extracted:",404,"static",0x50000100,9,172,113,8,0x00000000
    CONTROL "",701,"edit",0x50010000,82,151,23,9,0x00000200
    CONTROL "",702,"edit",0x50010000,82,161,23,9,0x00000200
    CONTROL "",704,"edit",0x50010000,82,172,23,9,0x00000200
    CONTROL "Right click on the Image.",402,"static",0x50000100,9,184,113,8,0x00000000
    CONTROL "Select an Image:",403,"static",0x50000100,9,192,113,8,0x00000000
    CONTROL "",703,"SysTreeView32",0x50000027,9,201,114,57,0x00000200
END

4805 DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 1, 24, 132, 273 ;265 4804
STYLE WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL "", 431, "button", WS_CHILD | BS_GROUPBOX, 4, 0, 124, 271 ;263
    CONTROL "Build The Output File", 601, "button", WS_BORDER | BS_PUSHBUTTON,
            09, 52, 114, 13
    CONTROL "Save File", 602, "button", WS_BORDER | BS_PUSHBUTTON,
            09, 68, 114, 13
    CONTROL "Save File As", 603, "button", WS_BORDER | BS_PUSHBUTTON,
            09, 84, 114, 13
    CONTROL "Create the application equate list", 604, "button", WS_BORDER | BS_PUSHBUTTON,
            09, 100, 114, 13
    CONTROL "Clear the edit screen", 605, "button", WS_BORDER | BS_PUSHBUTTON,
            09, 132, 114, 13
END

4806 DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 1, 24, 132, 273 ;265 4805
STYLE WS_CHILD
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL "", 431, "button", WS_CHILD | BS_GROUPBOX, 4, 0, 124, 271 ;263
    CONTROL "Display Sample Resource File", 602, "button", WS_BORDER | BS_PUSHBUTTON,
            09, 52, 114, 13
    CONTROL "Display Sample Resource", 603, "button", WS_BORDER | BS_PUSHBUTTON,
            09, 68, 114, 13
    CONTROL "Display Sample Menu", 604, "button", WS_BORDER | BS_PUSHBUTTON,
            09, 84, 114, 13
    CONTROL "Display Sample Dialog", 605, "button", WS_BORDER | BS_PUSHBUTTON,
            09, 100, 114, 13
END

4816 DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 0,0,329,282
CAPTION "Equate list"
FONT    8, "MS Sans Serif"
STYLE   0x14C80000
EXSTYLE 0x00000080
BEGIN
;    CONTROL "",4002,"RichEdit20A",0x506181C4,-3,-2,334,285,0x00000200
    CONTROL "",4002,"edit",0x500100C4,0,0,329,282,0x00000200
END

4901 DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 0, 0, 0, 0
STYLE WS_POPUP | WS_VISIBLE | WS_BORDER
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL "", 8801, "static", SS_BLACKFRAME, 0, 0, 0, 0
END

4902 DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 0, 0, 0, 0
STYLE WS_POPUP | WS_VISIBLE | WS_BORDER
FONT 8, "MS Sans Serif"
BEGIN
END

4903 DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 0, 0, 0, 0
STYLE WS_POPUP | WS_VISIBLE
FONT 8, "MS Sans Serif"
BEGIN
END

5000 DIALOGEX 0, 0, 0, 0
CAPTION "Style"
FONT 8,"MS Sans Serif"
STYLE 0x10CF0000
EXSTYLE 0x00000088
BEGIN
  CONTROL "", 5001, "edit", 0x50010800, 2,3,133,11, 0x00000200
  CONTROL "IDC_BTN", 5002, "button", 0x50010080, 2,17,10,9, 0x00000000
  CONTROL "IDC_BTN", 5003, "button", 0x50010080, 14,17,10,9, 0x00000000
  CONTROL "IDC_BTN", 5004, "button", 0x50010080, 26,17,10,9, 0x00000000
  CONTROL "Skip To Ctrl Style", 5005, "button", 0x50010000, 43,17,59,9, 0x00000000
  CONTROL "Close", 5006, "button", 0x50010000, 109,17,25,9, 0x00000000
  CONTROL "WS_POPUP", 5007, "static", 0x50001100,2,30,133,11, 0x00000000
  CONTROL "Have A Nice Day!", 5008, "static", 0x50001100,2,44,133,39, 0x00000000
END

6000 DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 6,0,124,80
CAPTION "Options"
FONT    8,"MS Sans Serif"
STYLE   0x94C80000
EXSTYLE 0x00000180
BEGIN
    CONTROL "Show Grid",601,"button",0x50000003,4,3,46,9,0x00000000
    CONTROL "Snap To Grid",607,"button",0x50000003,54,3,57,9,0x00000000
    CONTROL "Grid Size",0,"button",0x54000007,4,12,117,20,0x00000000
    CONTROL "2",602,"button",0x50000009,6,20,20,9,0x00000000
    CONTROL "3",603,"button",0x50000009,26,20,20,9,0x00000000
    CONTROL "4",604,"button",0x50000009,46,20,20,9,0x00000000
    CONTROL "6",606,"button",0x50000009,66,20,20,9,0x00000000
    CONTROL "Use my convert routine",608,"button",0x50010003,4,35,92,9,0x00000000
    CONTROL "Set Default Styles",609,"button",0x50010000,4,48,116,12,0x00000000
    CONTROL "Clear All Dialogs From Memory",605,"button",0x50010000,4,64,116,12,0x00000000
END

2000 DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 86,85,100,50
CAPTION "Resource Sample"
FONT    8, "MS Sans Serif"
STYLE   0x14C80000
;EXSTYLE 0x00000180
BEGIN
    CONTROL 8809,2001,"static",0x5000090E,40,15,32,32,0x00000000
END


3000 DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 86,85,100,50
CAPTION "Menu Sample"
MENU    3100
FONT    8, "MS Sans Serif"
STYLE   0x14C80000
EXSTYLE 0x00000180
BEGIN
END

7000 DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 86,85,204,46
CAPTION "Dialog Sample"
FONT    8, "MS Sans Serif"
STYLE   0x14C80000
EXSTYLE 0x00000180
BEGIN
    CONTROL "Find what:",4001,"static",0x50000100,3,3,33,7,0x00000000
    CONTROL "",4002,"edit",0x50010000,40,2,114,11,0x00000200
    CONTROL "Find Next",4003,"button",0x54010000,158,2,42,11,0x00000000
    CONTROL "Match &whole word only",4004,"button",0x50010003,3,19,85,8,0x00000000
    CONTROL "Match &case",4005,"button",0x50010003,3,35,73,8,0x00000000
    CONTROL "Direction",4006,"button",0x54000007,93,15,60,28,0x00000000
    CONTROL "&Up",4007,"button",0x50010009,98,23,36,8,0x00000000
    CONTROL "&Down",4008,"button",0x50010009,98,32,40,9,0x00000000
    CONTROL "Cancel",4009,"button",0x54010000,158,32,42,11,0x00000000
END

8000 DIALOGEX LOADONCALL MOVEABLE DISCARDABLE -2,35,131,166 ;154
CAPTION "Alignment - Size - Shift - Space"
FONT    8, "MS Sans Serif"
STYLE   0x14C80000
EXSTYLE 0x00000180
BEGIN
    CONTROL "Alignment",40,"button",0x54000007,3,3,65,56,0x00000000
    CONTROL "Left",2001,"button",0x50010000,8,12,33,9,0x00000000
    CONTROL "Top",2002,"button",0x50010000,8,23,33,9,0x00000000
    CONTROL "Right",2003,"button",0x50010000,8,34,33,9,0x00000000
    CONTROL "Bottom",2004,"button",0x50010000,8,45,33,9,0x00000000
    CONTROL "Shift",41,"button",0x54000007,3,60,65,56,0x00000000
    CONTROL "Left",2005,"button",0x50010000,8,69,33,9,0x00000000
    CONTROL "Up",2006,"button",0x50010000,8,80,33,9,0x00000000
    CONTROL "Right",2007,"button",0x50010000,8,91,33,9,0x00000000
    CONTROL "Down",2008,"button",0x50010000,8,102,33,9,0x00000000
    CONTROL "1",3012,"edit",0x50010000,48,69,13,9,0x00000000
    CONTROL "1",3013,"edit",0x50010000,48,80,13,9,0x00000000
    CONTROL "1",3014,"edit",0x50010000,48,91,13,9,0x00000000
    CONTROL "1",3015,"edit",0x50010000,48,102,13,9,0x00000000
    CONTROL "Size",42,"button",0x54000007,84,3,44,56,0x00000000
    CONTROL "Width",2009,"button",0x50010000,89,12,33,9,0x00000000
    CONTROL "Height",2010,"button",0x50010000,89,23,33,9,0x00000000
    CONTROL "Both",2011,"button",0x50010000,89,34,33,9,0x00000000
    CONTROL "Set Size",2012,"button",0x50010000,89,45,33,9,0x00000000
    CONTROL "Set Size",43,"button",0x54000007,84,60,44,56,0x00000000
    CONTROL "Wth:",50,"static",0x50000100,89,69,15,9,0x00000000
    CONTROL "",3016,"edit",0x50010000,109,69,13,9,0x00000000
    CONTROL "Hgt:",60,"static",0x50000100,89,80,15,9,0x00000000
    CONTROL "",3017,"edit",0x50010000,109,80,13,9,0x00000000
    CONTROL "Set Spaces",44,"button",0x54000007,3,117,65,34,0x00000000
    CONTROL "Vert",2013,"button",0x50010000,8,126,33,9,0x00000000
    CONTROL "Horz",2014,"button",0x50010000,8,137,33,9,0x00000000
    CONTROL "2",3018,"edit",0x50010000,48,126,13,9,0x00000000
    CONTROL "2",3019,"edit",0x50010000,48,137,13,9,0x00000000
    CONTROL "Tab Index",45,"button",0x54000007,84,117,44,34,0x00000000
    CONTROL "Re Num",2015,"button",0x50010000,89,126,33,9,0x00000000
    CONTROL "Undo the last change",2016,"button",0x50010000,3,154,124,9,0x00000000
END

5100 DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 104,0,224,132
CAPTION ""
FONT    8, "Tahoma"
STYLE   0x94C80000
EXSTYLE 0x00000180
BEGIN
    CONTROL "",431,"button",0x54000007,3,0,218,129,0x00000000
    CONTROL "Control Type",IDC_STATIC,"static",0x50000101,89,7,45,8,0x00000000
    CONTROL "",411,"combobox",0x50200E02,76,16,69,81,0x00000000
    CONTROL "StyleEx",IDC_STATIC,"static",0x50000101,41,24,30,8,0x00000000
    CONTROL "Style",IDC_STATIC,"static",0x50000101,151,24,20,8,0x00000000
    CONTROL "",412,"listbox",0x50A01942,7,34,102,75,0x00000000
    CONTROL "",413,"listbox",0x50A01940,113,34,103,75,0x00000000
    CONTROL "Restore All Defaults",601,"button",0x50000000,7,112,69,12,0x00000000
    CONTROL "Restore Ctrl Defaults",602,"button",0x50000000,77,112,69,12,0x00000000
    CONTROL "Update Ctrl Defaults",603,"button",0x50000000,147,112,69,12,0x00000000
END

5200 DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 146,110,172,124
CAPTION "Extract error list"
FONT    8, "MS Sans Serif"
STYLE   0x94C80000
EXSTYLE 0x00000180
BEGIN
    CONTROL "There is a problem with the following dialog(s)",IDC_STATIC,"static",0x50000101,5,1,162,9,0x00000000
    CONTROL "The program will attemt to corect the problem",IDC_STATIC,"static",0x50000101,5,11,162,9,0x00000000
    CONTROL "Dialog",IDC_STATIC,"static",0x50001100,6,23,80,9,0x00000000
    CONTROL "Control",IDC_STATIC,"static",0x50001100,86,23,81,9,0x00000000
    CONTROL "",5201,"edit",0x50210084,5,33,162,87,0x00000200
END

4820 DIALOG LOADONCALL MOVEABLE DISCARDABLE 6, 6, 10, 9
STYLE WS_POPUP | WS_VISIBLE | WS_BORDER | DS_MODALFRAME | DS_3DLOOK | DS_SYSMODAL
BEGIN
END
