#include "windows.h"
#include "rc.h"

APLACER					ICON    "aplacer.ico"
1						ICON    "aplacer.ico"
OPEN                    ICON    "open.ico"
INFO                    ICON    "info.ico"
ZOOMIN                  ICON    "zoomin.ico"
ZOOMOUT                 ICON    "zoomout.ico"
RECT                    ICON    "rect.ico"
REF                     ICON    "ref.ico"
FLATTEN                 ICON    "flatten.ico"
SAVE                    ICON    "save.ico"
UNDO                    ICON    "undo.ico"
CLOSE                   ICON    "close.ico"

REF                     CURSOR  "ref.cur"

MAINDLG DIALOGEX 0, 20, 314, 200
STYLE DS_MODALFRAME | DS_3DLOOK | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | DS_SHELLFONT
CAPTION "Placer"
FONT 10, "MS Shell Dlg"
BEGIN
    DEFPUSHBUTTON   "",ID_OPEN,0,0,18,18,BS_ICON
    PUSHBUTTON      "mload",ID_MLOAD,19,0,21,8
    PUSHBUTTON      "msave",ID_MSAVE,40,0,21,8
    COMBOBOX        ID_MLIST,19,8,43,60,CBS_DROPDOWNLIST | CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
    PUSHBUTTON      "",ID_INFO,62,0,18,18,BS_ICON
    PUSHBUTTON      "",ID_ZOOMIN,80,0,18,18,BS_ICON
    PUSHBUTTON      "",ID_ZOOMOUT,98,0,18,18,BS_ICON
    PUSHBUTTON      "",ID_RECT,116,0,18,18,BS_ICON
    EDITTEXT        ID_RECT_left,134,0,19,9,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        ID_RECT_top,134,8,19,9,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        ID_RECT_right,151,0,19,9,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        ID_RECT_bottom,151,8,19,9,ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "",ID_COLOR,"Button",BS_OWNERDRAW | WS_TABSTOP,172,0,18,18
    EDITTEXT        ID_COLOR_R,190,0,18,7,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        ID_COLOR_G,190,6,18,7,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        ID_COLOR_B,190,12,18,7,ES_AUTOHSCROLL | ES_NUMBER
    PUSHBUTTON      "",ID_REF,208,0,18,18,BS_ICON
    EDITTEXT        ID_REF_x,226,0,18,9,ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        ID_REF_y,226,8,18,9,ES_AUTOHSCROLL | ES_NUMBER
    PUSHBUTTON      "",ID_FLATTEN,244,0,18,18,BS_ICON
    PUSHBUTTON      "",ID_SAVE,262,0,18,18,BS_ICON
    PUSHBUTTON      "",ID_UNDO,280,0,18,18,BS_ICON
    PUSHBUTTON      "",ID_CLOSE,298,0,18,18,BS_ICON
    PUSHBUTTON      "Histo",ID_HIST,0,19,34,10,WS_GROUP
    EDITTEXT        ID_HIST_EDT,0,28,34,10,ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "",ID_HIST_UD,"msctls_updown32",UDS_WRAP | UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | WS_TABSTOP,0,0,0,0
    PUSHBUTTON      "Pyramid",ID_PYRM,0,38,34,10,WS_GROUP
    EDITTEXT        ID_PYRM_EDT,0,47,34,10,ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "",ID_PYRM_UD,"msctls_updown32",UDS_WRAP | UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | WS_TABSTOP,0,0,0,0
    PUSHBUTTON      "FloodFill",ID_FILL,0,57,34,10,WS_GROUP
    EDITTEXT        ID_FILL_EDT,0,66,34,10,ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "",ID_FILL_UD,"msctls_updown32",UDS_WRAP | UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | WS_TABSTOP,0,0,0,0
    PUSHBUTTON      "RgbGray",ID_RGBG,0,76,34,10,WS_GROUP
    EDITTEXT        ID_RGBG_EDT,0,85,34,10,ES_AUTOHSCROLL | ES_NUMBER
	CONTROL         "",ID_RGBG_UD,"msctls_updown32",UDS_WRAP | UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | WS_TABSTOP,0,0,0,0
    PUSHBUTTON      "EroDilate",ID_EROD,0,95,34,10,WS_GROUP
    EDITTEXT        ID_EROD_EDT,0,104,34,10,ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "",ID_EROD_UD,"msctls_updown32",UDS_WRAP | UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | WS_TABSTOP,0,0,0,0
    PUSHBUTTON      "Smooth",ID_SMOO,0,114,34,10,WS_GROUP
    EDITTEXT        ID_SMOO_EDT,0,123,34,10,ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "",ID_SMOO_UD,"msctls_updown32",UDS_WRAP | UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | WS_TABSTOP,0,0,0,0
    PUSHBUTTON      "Contrast",ID_CONT,0,133,34,10,WS_GROUP
    EDITTEXT        ID_CONT_EDT,0,142,34,10,ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "",ID_CONT_UD,"msctls_updown32",UDS_WRAP | UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | WS_TABSTOP,0,0,0,0
    PUSHBUTTON      "Threshold",ID_THRE,0,152,34,10,WS_GROUP
    EDITTEXT        ID_THRE_EDT,0,161,34,10,ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "",ID_THRE_UD,"msctls_updown32",UDS_WRAP | UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | WS_TABSTOP,0,0,0,0
    PUSHBUTTON      "Edge",ID_EDGE,280,19,34,10,WS_GROUP
    EDITTEXT        ID_EDGE_EDT,280,28,34,10,ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "",ID_EDGE_UD,"msctls_updown32",UDS_WRAP | UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | WS_TABSTOP,0,0,0,0
    PUSHBUTTON      "Approx",ID_APPR,280,38,34,10,WS_GROUP
    EDITTEXT        ID_APPR_EDT,280,47,34,10,ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "",ID_APPR_UD,"msctls_updown32",UDS_WRAP | UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | WS_TABSTOP,0,0,0,0
    PUSHBUTTON      "Snake",ID_SNAK,280,57,34,10,WS_GROUP
    EDITTEXT        ID_SNAK_EDT,280,66,34,10,ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "",ID_SNAK_UD,"msctls_updown32",UDS_WRAP | UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | WS_TABSTOP,0,0,0,0
    PUSHBUTTON      "Line",ID_HOUG,280,76,34,10,WS_GROUP
    EDITTEXT        ID_HOUG_EDT,280,85,34,10,ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "",ID_HOUG_UD,"msctls_updown32",UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | WS_TABSTOP,0,0,0,0
    PUSHBUTTON      "Convex",ID_CNVX,280,95,34,10,WS_GROUP
    EDITTEXT        ID_CNVX_EDT,280,104,34,10,ES_AUTOHSCROLL | ES_NUMBER
    CONTROL         "",ID_CNVX_UD,"msctls_updown32",UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | WS_TABSTOP,0,0,0,0
    CONTROL         "",ID_MSG,"msctls_statusbar32",0x100,0,213,343,0
END

COLORDLG DIALOGEX 172, 16, 64, 40
STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_CHILD | WS_VISIBLE | WS_THICKFRAME
FONT 10, "MS Shell Dlg"
BEGIN
    CONTROL         "",1,"Button",BS_OWNERDRAW | WS_TABSTOP,0,0,8,8
    CONTROL         "",2,"Button",BS_OWNERDRAW | WS_TABSTOP,8,0,8,8
    CONTROL         "",3,"Button",BS_OWNERDRAW | WS_TABSTOP,16,0,8,8
    CONTROL         "",4,"Button",BS_OWNERDRAW | WS_TABSTOP,24,0,8,8
    CONTROL         "",5,"Button",BS_OWNERDRAW | WS_TABSTOP,32,0,8,8
    CONTROL         "",6,"Button",BS_OWNERDRAW | WS_TABSTOP,40,0,8,8
    CONTROL         "",7,"Button",BS_OWNERDRAW | WS_TABSTOP,48,0,8,8
    CONTROL         "",8,"Button",BS_OWNERDRAW | WS_TABSTOP,56,0,8,8
    CONTROL         "",9,"Button",BS_OWNERDRAW | WS_TABSTOP,0,8,8,8
    CONTROL         "",10,"Button",BS_OWNERDRAW | WS_TABSTOP,8,8,8,8
    CONTROL         "",11,"Button",BS_OWNERDRAW | WS_TABSTOP,16,8,8,8
    CONTROL         "",12,"Button",BS_OWNERDRAW | WS_TABSTOP,24,8,8,8
    CONTROL         "",13,"Button",BS_OWNERDRAW | WS_TABSTOP,32,8,8,8
    CONTROL         "",14,"Button",BS_OWNERDRAW | WS_TABSTOP,40,8,8,8
    CONTROL         "",15,"Button",BS_OWNERDRAW | WS_TABSTOP,48,8,8,8
    CONTROL         "",16,"Button",BS_OWNERDRAW | WS_TABSTOP,56,8,8,8
    CONTROL         "",17,"Button",BS_OWNERDRAW | WS_TABSTOP,0,16,8,8
    CONTROL         "",18,"Button",BS_OWNERDRAW | WS_TABSTOP,8,16,8,8
    CONTROL         "",19,"Button",BS_OWNERDRAW | WS_TABSTOP,16,16,8,8
    CONTROL         "",20,"Button",BS_OWNERDRAW | WS_TABSTOP,24,16,8,8
    CONTROL         "",21,"Button",BS_OWNERDRAW | WS_TABSTOP,32,16,8,8
    CONTROL         "",22,"Button",BS_OWNERDRAW | WS_TABSTOP,40,16,8,8
    CONTROL         "",23,"Button",BS_OWNERDRAW | WS_TABSTOP,48,16,8,8
    CONTROL         "",24,"Button",BS_OWNERDRAW | WS_TABSTOP,56,16,8,8
    CONTROL         "",25,"Button",BS_OWNERDRAW | WS_TABSTOP,0,24,8,8
    CONTROL         "",26,"Button",BS_OWNERDRAW | WS_TABSTOP,8,24,8,8
    CONTROL         "",27,"Button",BS_OWNERDRAW | WS_TABSTOP,16,24,8,8
    CONTROL         "",28,"Button",BS_OWNERDRAW | WS_TABSTOP,24,24,8,8
    CONTROL         "",29,"Button",BS_OWNERDRAW | WS_TABSTOP,32,24,8,8
    CONTROL         "",30,"Button",BS_OWNERDRAW | WS_TABSTOP,40,24,8,8
    CONTROL         "",31,"Button",BS_OWNERDRAW | WS_TABSTOP,48,24,8,8
    CONTROL         "",32,"Button",BS_OWNERDRAW | WS_TABSTOP,56,24,8,8
    CONTROL         "",33,"Button",BS_OWNERDRAW | WS_TABSTOP,0,32,8,8
    CONTROL         "",34,"Button",BS_OWNERDRAW | WS_TABSTOP,8,32,8,8
    CONTROL         "",35,"Button",BS_OWNERDRAW | WS_TABSTOP,16,32,8,8
    CONTROL         "",36,"Button",BS_OWNERDRAW | WS_TABSTOP,24,32,8,8
    CONTROL         "",37,"Button",BS_OWNERDRAW | WS_TABSTOP,32,32,8,8
    CONTROL         "",38,"Button",BS_OWNERDRAW | WS_TABSTOP,40,32,8,8
    CONTROL         "",39,"Button",BS_OWNERDRAW | WS_TABSTOP,48,32,8,8
    CONTROL         "",40,"Button",BS_OWNERDRAW | WS_TABSTOP,56,32,8,8
END


