#define _INC_STDIO
#include "awmcisam.h"

IDI_APPICON ICON    awmcisam.ico


/* Strings Definitions */

STRINGTABLE
BEGIN

IDS_UNKNOWN                 "Unknown"
IDS_ERROR_TITLE             "MCI SAMPLE: MCI ERROR"

IDS_DEVTYPE_ANIMATION       "Animation"     
IDS_DEVTYPE_CD_AUDIO        "CD Audio"
IDS_DEVTYPE_DAT             "DAT"
IDS_DEVTYPE_DIGITAL_VIDEO   "Digital Video"
IDS_DEVTYPE_OTHER           "Other"
IDS_DEVTYPE_SCANNER         "Scanner"
IDS_DEVTYPE_SEQUENCER       "Sequencer"
IDS_DEVTYPE_OVERLAY         "Overlay"
IDS_DEVTYPE_VIDEODISC       "VideoDisc"
IDS_DEVTYPE_VIDEOTAPE       "VideoTape"
IDS_DEVTYPE_WAVEFORM_AUDIO  "Audio Wave"

IDS_UNSUPPORTED_FUNCTION    "Unsupported"
IDS_SUPPORTED_FUNCTION      "Supported"

IDS_MODE_NOT_READY          "Not Ready"
IDS_MODE_PAUSE              "Pause"
IDS_MODE_PLAY_FORWARD       "Play Forward"
IDS_MODE_PLAY_REVERSE       "Play Reverse"
IDS_MODE_STOP               "Stop"
IDS_MODE_OPEN               "Open"
IDS_MODE_RECORD             "Record"
IDS_MODE_SEEK               "Seek"

IDS_ABOUT                   "&About Sample Program..."

END


/* Dialog Box Templates */

IDDLG_MAIN DIALOG LOADONCALL MOVEABLE DISCARDABLE 3, 19, 311, 160
CAPTION "Gold Disk MCI Animation Driver - Sample Program"
FONT 8, "Helv"
STYLE WS_BORDER | WS_CAPTION | WS_DLGFRAME | DS_MODALFRAME | WS_GROUP | WS_POPUP | WS_SYSMENU
BEGIN
    CONTROL "&Open...", IDPB_MAIN_OPEN, "button", 
        BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 
        5, 5, 67, 16

    CONTROL "&Close", IDPB_MAIN_CLOSE, "button", 
        BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 
        5, 23, 67, 16

    CONTROL "S&tatus...", IDPB_MAIN_STATUS, "button", 
        BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 
        5, 41, 67, 16

    CONTROL "&Info...", IDPB_MAIN_INFO, "button", 
        BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 
        5, 59, 67, 16

    CONTROL "&Device Caps...", IDPB_MAIN_DEV_CAP, "button", 
        BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 
        5, 77, 67, 16

    CONTROL "&Bkgnd Load", IDCB_MAIN_BKGND_LOAD, "button", 
        BS_CHECKBOX | WS_TABSTOP | WS_CHILD, 
        5, 99, 67, 12

    CONTROL "&Full Screen Play", IDCB_MAIN_FULL_SCRN, "button", 
        BS_CHECKBOX | WS_TABSTOP | WS_CHILD, 
        5, 112, 67, 12

    CONTROL "|<", IDPB_MAIN_TOSTART, "button", 
        BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 
        5, 140, 35, 16

    CONTROL "<<", IDPB_MAIN_PLAY_REVERSE, "button", 
        BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 
        43, 140, 35, 16

    CONTROL "<", IDPB_MAIN_STEP_REVERSE, "button", 
        BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 
        81, 140, 35, 16

    CONTROL "|| ||", IDPB_MAIN_PAUSE, "button", 
        BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 
        119, 140, 35, 16

    CONTROL ">", IDPB_MAIN_STEP_FORWARD, "button", 
        BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 
        157, 140, 35, 16

    CONTROL ">>", IDPB_MAIN_PLAY_FORWARD, "button", 
        BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 
        195, 140, 35, 16

    CONTROL ">|", IDPB_MAIN_TOEND "button", 
        BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 
        233, 140, 35, 16

    CONTROL "&Seek", IDPB_MAIN_SEEK, "button", 
        BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 
        271, 140, 35, 16

	CONTROL "", IDST_MAIN_PLAYWND, "static",
		SS_BLACKFRAME | WS_CHILD | WS_DLGFRAME,
		75, 5, 233, 133
END


IDDLG_OPEN DIALOG LOADONCALL MOVEABLE DISCARDABLE 133, 59, 121, 64
CAPTION "Open Movie"
FONT 8, "Helv"
STYLE WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | DS_MODALFRAME | WS_POPUP
BEGIN
    CONTROL "", IDEB_OPEN_MOVIE_FILE, "edit", 
        ES_LEFT | ES_AUTOHSCROLL | WS_BORDER | WS_TABSTOP | WS_CHILD, 
        25, 14, 79, 12

    CONTROL "Cancel", IDPB_CANCEL, "button", 
        BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 
        67, 38, 35, 14

    CONTROL "OK", IDPB_OK, "button", 
        BS_DEFPUSHBUTTON | WS_TABSTOP | WS_CHILD, 
        27, 38, 35, 14

    CONTROL "&File:", -1, "static", 
        SS_LEFT | WS_CHILD, 
        3, 16, 21, 8
END


IDDLG_SEEK DIALOG LOADONCALL MOVEABLE DISCARDABLE 133, 59, 101, 60
CAPTION "Seek To Frame"
FONT 8, "Helv"
STYLE WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | DS_MODALFRAME | WS_POPUP
BEGIN
    CONTROL "&Frame #:", -1, "static", 
        SS_LEFT | WS_CHILD, 
        11, 15, 32, 8

    CONTROL "", IDEB_SEEK_TOFRAME, "edit", 
        ES_LEFT | WS_BORDER | WS_TABSTOP | WS_CHILD, 
        44, 13, 46, 12

    CONTROL "OK", IDPB_OK, "button", 
        BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 
        13, 36, 35, 14

    CONTROL "Cancel", IDPB_CANCEL, "button", 
        BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 
        56, 36, 35, 14

END


IDDLG_DEVCAPS DIALOG LOADONCALL MOVEABLE DISCARDABLE 109, -6, 133, 224
CAPTION "Device Capabilities"
FONT 8, "Helv"
STYLE WS_BORDER | WS_CAPTION | WS_DLGFRAME | DS_MODALFRAME | WS_SYSMENU | WS_POPUP
BEGIN
    CONTROL "OK", IDPB_OK, "button", 
        BS_DEFPUSHBUTTON | WS_TABSTOP | WS_CHILD, 
        50, 207, 35, 14

    CONTROL "Device Type:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        5, 7, 60, 8

    CONTROL "DT", IDST_DEVCAP_DEVTYPE, "static", 
        SS_LEFT | WS_CHILD, 
        72, 7, 111, 8

    CONTROL "Max Windows:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        5, 19, 60, 8

    CONTROL "MW", IDST_DEVCAP_MAXWIN, "static", 
        SS_LEFT | WS_CHILD, 
        72, 19, 111, 8


    CONTROL "Normal Rate:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        5, 31, 60, 8

    CONTROL "NR", IDST_DEVCAP_NORMRATE, "static", 
        SS_LEFT | WS_CHILD, 
        72, 31, 111, 8


    CONTROL "Fast Play Rate:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        5, 43, 60, 8

    CONTROL "FPR", IDST_DEVCAP_FASTRATE, "static", 
        SS_LEFT | WS_CHILD, 
        72, 43, 111, 8


    CONTROL "Slow Play Rate:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        5, 55, 60, 8

    CONTROL "SPR", IDST_DEVCAP_SLOWRATE, "static", 
        SS_LEFT | WS_CHILD, 
        72, 55, 111, 8


    CONTROL "Eject:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        5, 67, 60, 8

    CONTROL "EJ", IDST_DEVCAP_EJECT, "static", 
        SS_LEFT | WS_CHILD, 
        72, 67, 111, 8


    CONTROL "Play:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        5, 79, 60, 8

    CONTROL "PY", IDST_DEVCAP_PLAY, "static", 
        SS_LEFT | WS_CHILD, 
        72, 79, 111, 8


    CONTROL "Record:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        5, 91, 60, 9

    CONTROL "RC", IDST_DEVCAP_RECORD, "static", 
        SS_LEFT | WS_CHILD, 
        72, 91, 111, 8


    CONTROL "Save:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        5, 103, 60, 8

    CONTROL "SV", IDST_DEVCAP_SAVE, "static", 
        SS_LEFT | WS_CHILD, 
        72, 103, 111, 8


    CONTROL "Play Reverse:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        5, 115, 60, 8

    CONTROL "PR", IDST_DEVCAP_PLAYREVERSE, "static", 
        SS_LEFT | WS_CHILD, 
        72, 115, 111, 8


    CONTROL "Audio:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        5, 127, 60, 8

    CONTROL "AU", IDST_DEVCAP_AUDIO, "static", 
        SS_LEFT | WS_CHILD, 
        72, 127, 111, 8


    CONTROL "Video:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        5, 139, 60, 8

    CONTROL "VI", IDST_DEVCAP_VIDEO, "static", 
        SS_LEFT | WS_CHILD, 
        72, 139, 111, 8


    CONTROL "Stretch:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        5, 151, 60, 8

    CONTROL "SR", IDST_DEVCAP_STRETCH, "static", 
        SS_LEFT | WS_CHILD, 
        72, 151, 111, 8

    CONTROL "Uses Files:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        5, 163, 60, 8

    CONTROL "UF", IDST_DEVCAP_USESFILES, "static", 
        SS_LEFT | WS_CHILD, 
        72, 163, 111, 8


    CONTROL "Uses Palette:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        5, 175, 60, 8

    CONTROL "UP", IDST_DEVCAP_PALETTE, "static", 
        SS_LEFT | WS_CHILD, 
        72, 175, 111, 8

    CONTROL "Device Elements:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        5, 187, 60, 8

    CONTROL "DE", IDST_DEVCAP_DEVELE, "static", 
        SS_LEFT | WS_CHILD, 
        72, 187, 111, 8


END

IDDLG_INFO DIALOG LOADONCALL MOVEABLE DISCARDABLE 133, 59, 252, 76
CAPTION "Device Info"
FONT 8, "Helv"
STYLE WS_BORDER | WS_CAPTION | WS_DLGFRAME | DS_MODALFRAME | WS_SYSMENU | WS_POPUP
BEGIN

    CONTROL "File Name:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        6, 11, 59, 8

    CONTROL "FN", IDST_INFO_FILENAME, "static", 
        SS_LEFT | WS_CHILD, 
        72, 11, 177, 8

    CONTROL "Window Caption:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        6, 21, 59, 8

    CONTROL "WC", IDST_INFO_CAPTION, "static", 
        SS_LEFT | WS_CHILD, 
        72, 21, 177, 8

    CONTROL "Product Info:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        6, 31, 59, 8

    CONTROL "PI", IDST_INFO_PRODUCT, "static", 
        SS_LEFT | WS_CHILD, 
        72, 31, 177, 8

    CONTROL "MCI Driver Ver:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        6, 41, 59, 8

    CONTROL "", IDST_INFO_DDVERSION, "static", 
        SS_LEFT | WS_CHILD, 
        72, 41, 177, 8


    CONTROL "OK", IDPB_OK, "button", 
        BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 
        110, 55, 35, 14
END


IDDLG_STATUS DIALOG LOADONCALL MOVEABLE DISCARDABLE 133, 59, 98, 113
CAPTION "Status"
FONT 8, "Helv"
STYLE WS_BORDER | WS_CAPTION | WS_DLGFRAME | DS_MODALFRAME | WS_SYSMENU | WS_POPUP
BEGIN

    CONTROL "Current Frame:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        7, 10, 50, 8

    CONTROL "CF", IDST_STATUS_CURRFRAME, "static", 
        SS_LEFT | WS_CHILD, 
        60, 10, 31, 8

    CONTROL "# of Frames:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        7, 25, 50, 8

    CONTROL "NF", IDST_STATUS_NUMFRAMES, "static", 
        SS_LEFT | WS_CHILD, 
        60, 25, 50, 8

    CONTROL "Current Mode:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        7, 40, 50, 8

    CONTROL "CM", IDST_STATUS_CURRMODE, "static", 
        SS_LEFT | WS_CHILD, 
        60, 40, 50, 8

    CONTROL "Speed:", -1, "static", 
        SS_RIGHT | WS_CHILD, 
        7, 55, 50, 8

    CONTROL "SP", IDST_STATUS_SPEED, "static", 
        SS_LEFT | WS_CHILD, 
        60, 55, 50, 8

    CONTROL "Window #:", -1, "static",
        SS_RIGHT | WS_CHILD, 
        7, 70, 50, 8

    CONTROL "HW", IDST_STATUS_HWND, "static",
        SS_LEFT | WS_CHILD, 
        60, 70, 50, 8

    CONTROL "OK", IDPB_OK, "button", 
        BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 
        29, 92, 35, 14
END

IDDLG_ABOUT DIALOG LOADONCALL MOVEABLE DISCARDABLE 133, 59, 109, 72
CAPTION "About"
FONT 8, "Helv"
STYLE WS_BORDER | WS_CAPTION | WS_DLGFRAME | DS_MODALFRAME | WS_SYSMENU | WS_POPUP
BEGIN

    CONTROL "OK", IDPB_OK, "button", 
        BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 
        36, 50, 35, 14

    CONTROL "Gold Disk MCI Animation", -1, "static",
        SS_CENTER | WS_CHILD, 
        8, 10, 95, 8

    CONTROL "Driver Sample Program", -1, "static",
        SS_CENTER | WS_CHILD, 
        8, 20, 95, 8

	CONTROL "Version ", IDST_VERSION, "static",
		SS_CENTER | WS_CHILD,
		8, 30, 95, 8
END
