
// Constants for dialog box - some may be redundant

#define BS_AUTORADIOBUTTON  0x00000009L

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

#define ES_AUTOHSCROLL      0x80L
#define ES_LEFT             0

#define IDC_RADIO1	    1001
#define IDC_RADIO2	    1002
#define IDC_RADIO3	    1003
#define IDC_RADIO4	    1004
#define IDC_EDIT            3000
#define IDC_BUTTON          3001
#define IDC_EXIT            3002
#define IDC_STATIC	    -1

#define ID_PICK_SHAPE 	    40001
#define ID_PICK_EXIT	    40002
#define ID_HELP_ABOUT	    40003
#define IDOK	            4

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

RadioButton MENU DISCARDABLE
{
 POPUP "&Pick"
        {
	 MENUITEM "&Select a shape...", ID_PICK_SHAPE
         MENUITEM "&Exit",		ID_PICK_EXIT
        }
 POPUP "&Help"
	{
	 MENUITEM "&About...",		ID_HELP_ABOUT
 	}
}

About DIALOG DISCARDABLE 0, 0, 190, 120
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 "Dialog Demo using Radio Buttons",IDC_STATIC,17,14,152,11
    CTEXT "by",IDC_STATIC, 85,30,16,12
    CTEXT "Ron Thomas", IDC_STATIC, 20,47,153,15
END

Buttons DIALOG DISCARDABLE 10, 10, 180, 60
STYLE  DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU  
CAPTION "Select Shape with Radio Buttons"
FONT 8, "MS Sans Serif"
BEGIN

    DEFPUSHBUTTON   "OK", IDOK,  60,45,52,13
    CONTROL	    "Draw a line",IDC_RADIO1,"Button",
		    BS_AUTORADIOBUTTON | WS_GROUP, 13,5,71,10
    CONTROL	    "Draw a rectangle",IDC_RADIO2,"Button",
		    BS_AUTORADIOBUTTON | WS_GROUP, 13,30,71,10
    CONTROL	    "Draw an ellipse",IDC_RADIO3,"Button",
		    BS_AUTORADIOBUTTON | WS_GROUP, 85,5,71,10
    CONTROL	    "Draw a triangle",IDC_RADIO4,"Button",
		    BS_AUTORADIOBUTTON | WS_GROUP, 85,30,71,10
END
