#include <RESOURCE.H>

#define   IDC_STATIC         -1

#define   IDM_EXIT      7001
#define   IDM_BUTCTRL   8001

#define   IDM_CUT       1004
#define   IDM_COPY      1005
#define   IDM_PASTE     1006
#define   IDM_DELETE    1007
#define   IDM_SELALL    1008

#define   IDD_DLG01     2000
#define   IDC_GRP01     2001
#define   IDC_STATIC01  2002
#define   IDC_REDIT01   2003
#define   IDC_REDIT02   2004
#define   IDC_REDIT03   2005
#define   IDC_REDIT04   2006
#define   IDC_REDIT05   2007
#define   IDC_REDIT06   2008
#define   IDC_REDIT07   2009
#define   IDC_REDIT08   2010
#define   IDC_REDIT09   2011
#define   IDC_CHK01     2012
#define   IDC_CHK02     2013
#define   IDC_CHK03     2014
#define   IDC_CHK04     2015
#define   IDC_CHK05     2016
#define   IDC_CHK06     2017
#define   IDC_CHK07     2018
#define   IDC_CHK08     2019
#define   IDC_GRP02     2020
#define   IDC_LISTBOX01 2021
#define   IDC_BUTT01    2022
#define   IDC_BUTT02    2023
#define   IDC_BUTT03    2024
#define   IDC_BUTT04    2025
#define   IDC_BUTT05    2026
#define   IDC_BUTT06    2027
#define   IDC_BUTT07    2028
#define   IDC_BUTT08    2029
#define   IDC_BUTT09    2030
#define   IDC_BUTT10    2031
#define   IDC_BUTT11    2032
#define   IDC_BUTT12    2033

;NOTE!! You may need to change the paths to the proper directory
901       BITMAP  DISCARDABLE     "Res\\Wood02.bmp"
902       BITMAP  DISCARDABLE     "Res\\MouseO4U.bmp"
903       BITMAP  DISCARDABLE     "Res\\MouseO4O.bmp"
904       BITMAP  DISCARDABLE     "Res\\MouseO4D.bmp"
905       ICON    DISCARDABLE     "Res\\AsmEdit.ico"

MainMenu  MENU DISCARDABLE
BEGIN
   POPUP "&File"
   BEGIN
      MENUITEM "E&xit",                 IDM_EXIT
   END
   POPUP "&Create"
   BEGIN
      MENUITEM "Create Button Control", IDM_BUTCTRL
   END
END

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

IDD_DLG01 DIALOGEX LOADONCALL MOVEABLE DISCARDABLE 0,0,308,208
CAPTION "Button Control"
FONT    8, "MS Sans Serif"
STYLE   0x14C80000
EXSTYLE 0x00000180
BEGIN
    CONTROL "Button Control Parameters",IDC_GRP01,"button",0x54000007,6,3,95,116,0x00000000
    CONTROL "X Position",IDC_STATIC,"static",0x50000100,39,14,36,8,0x00000000
    CONTROL "Y Position",IDC_STATIC,"static",0x50000100,39,25,36,8,0x00000000
    CONTROL "Wth",IDC_STATIC,"static",0x50000100,39,36,15,8,0x00000000
    CONTROL "Hgt",IDC_STATIC,"static",0x50000100,82,36,15,8,0x00000000
    CONTROL "",IDC_REDIT01,"RichEdit20A",0x50812004,14,13,20,9,0x00000200
    CONTROL "",IDC_REDIT02,"RichEdit20A",0x50812004,14,24,20,9,0x00000200
    CONTROL "",IDC_REDIT03,"RichEdit20A",0x50812004,14,35,20,9,0x00000200
    CONTROL "",IDC_REDIT04,"RichEdit20A",0x50812004,59,35,20,9,0x00000200
    CONTROL "Top Six Ownerdrawn Only",IDC_STATIC,"static",0x50000100,8,48,90,8,0x00000000
    CONTROL "Transparent Text",IDC_CHK01,"button",0x50010003,14,57,82,8,0x00000000
    CONTROL "Raised rectangle",IDC_CHK02,"button",0x50010003,14,65,82,8,0x00000000
    CONTROL "Depress rectangle",IDC_CHK03,"button",0x50010003,14,73,82,8,0x00000000
    CONTROL "Use Images and Text",IDC_CHK04,"button",0x50010003,14,81,82,8,0x00000000
    CONTROL "Use Images only",IDC_CHK05,"button",0x50010003,14,89,82,8,0x00000000
    CONTROL "Size Image to Button ",IDC_CHK06,"button",0x50010003,14,97,82,8,0x00000000
    CONTROL "Size Button to Image",IDC_CHK07,"button",0x50010003,14,105,82,8,0x00000000
    CONTROL "Button Control Styles",IDC_GRP02,"button",0x54000007,108,3,113,116,0x00000000
    CONTROL "",IDC_LISTBOX01,"listbox",0x50200149,114,12,101,102,0x00000200
    CONTROL "Edit Button Text",IDC_STATIC,"static",0x50000100,6,121,54,8,0x00000000
    CONTROL "",IDC_REDIT05,"edit",0x50010080,6,129,95,11,0x00000200
    CONTROL "Quick View",IDC_BUTT01,"button",0x50010000,108,129,49,9,0x00000000
    CONTROL "Preview",IDC_BUTT02,"button",0x50010000,170,129,49,9,0x00000000
    CONTROL "",IDC_REDIT06,"edit",0x50010080,6,142,95,11,0x00000200
    CONTROL "Bitmap / Icon",IDC_BUTT03,"button",0x50010000,108,142,49,9,0x00000000
    CONTROL "",IDC_REDIT07,"edit",0x50010080,6,155,63,11,0x00000200
    CONTROL "",IDC_REDIT08,"edit",0x50012080,69,155,14,11,0x00000200
    CONTROL "",IDC_REDIT09,"edit",0x50012080,83,155,18,11,0x00000200
    CONTROL "Font / Size",IDC_BUTT07,"button",0x50010000,108,155,49,9,0x00000000
    CONTROL "Create Code",IDC_BUTT08,"button",0x50010000,170,155,49,9,0x00000000
    CONTROL "Text Color",IDC_BUTT04,"button",0x50010000,6,168,52,9,0x00000000
    CONTROL "Face Color",IDC_BUTT05,"button",0x50010000,6,180,52,9,0x00000000
    CONTROL "HiLite Color",IDC_BUTT06,"button",0x50010000,6,192,52,9,0x00000000
    CONTROL "Use the inputs to the left to create a Button or click a home grown style Button below.",IDC_STATIC,"static",0x50000101,229,4,70,37,0x00000000
    CONTROL "Select from above",IDC_CHK08,"button",0x50010003,226,144,82,8,0x00000000
    CONTROL "For a different effect try the WS_EX_DLGMODALFRAME Style with a Ownerdrawn Button.",IDC_STATIC,"static",0x50000100,170,172,110,44,0x00000000
    CONTROL "IDC_BUTT",IDC_BUTT09,"button",0x50010000,226,45,75,16,0x00000000
    CONTROL "IDC_BUTT",IDC_BUTT10,"button",0x50010000,226,67,75,16,0x00000000
    CONTROL "IDC_BUTT",IDC_BUTT11,"button",0x50010000,226,88,75,16,0x00000000
    CONTROL "IDC_BUTT",IDC_BUTT12,"button",0x5001000B,226,110,75,16,0x00000000
END
