
// Constants for dialog box - some may be redundant

#define DS_CENTER           0x0800L
#define DS_3DLOOK           0x0004L
#define DS_MODALFRAME       0x80L

#define ES_AUTOHSCROLL      0x80L
#define ES_LEFT             0
#define ES_CENTER	    1

#define IDC_INTEGER	    1000
#define IDC_SPIN1	    1001
#define IDC_STATIC	    -1

#define ID_CONTROLS_INT	    40002	
#define ID_HELP_ABOUT	    40003
#define ID_HELP_EXIT	    40004

#define IDOK	            1
#define IDCANCEL            2

#define UDS_SETBUDDYINT	    0x0002
#define UDS_ALIGNRIGHT	    0x0004
#define UDS_AUTOBUDDY	    0x0010
#define UDS_ARROWKEYS	    0x0020
#define UDS_HOTTRACK	    0x0100

#define WS_OVERLAPPED       0x00000000L
#define WS_MINIMIZEBOX      0x00020000L
#define WS_GROUP 	    0x00020000L
#define WS_SYSMENU          0x00080000L
#define WS_CAPTION            0xC00000L
#define WS_VISIBLE          0x10000000L
#define WS_CHILD	    0x40000000L
#define WS_POPUP	    0x80000000L

CONTROLMENU MENU DISCARDABLE
{
 POPUP "&Controls"
        {
	 MENUITEM "&Spin Control...", 	ID_CONTROLS_INT
        }
 POPUP "&Help"
	{
	 MENUITEM "&About...",		ID_HELP_ABOUT
	 MENUITEM "&Exit",		ID_HELP_EXIT
        }
}

About DIALOG DISCARDABLE 0, 0, 190, 90
STYLE  DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU 
CAPTION "About Dialog"
FONT 8, "MS Sans Serif"
BEGIN
    DEFPUSHBUTTON   "OK", IDOK, 69,69,50,14
    CTEXT "Demo showing the use of the Spin Control",IDC_STATIC,15,10,151,10
    CTEXT "by",IDC_STATIC, 80,25,30,10
    CTEXT "Ron Thomas", IDC_STATIC, 20,45,155,10
END

SPINDLGBOX DIALOG DISCARDABLE 0, 0, 280, 95
STYLE  DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU 
CAPTION "Spin Control"
FONT 8, "MS Sans Serif"
BEGIN
    DEFPUSHBUTTON   "OK", IDOK, 82,62,50,14
    PUSHBUTTON	"Cancel", IDCANCEL,147,62,50,14
    CTEXT	"Use the Spin Control to set the radius of the circle",
		IDC_STATIC, 15,5,250,12
    EDITTEXT	IDC_INTEGER,100,30,80,15, ES_CENTER | ES_AUTOHSCROLL
    CONTROL	"Spin1",IDC_SPIN1,"msctls_updown32",
		UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | 
		UDS_HOTTRACK, 190, 30, 11, 14
END



