/**************************************************************************
 *
 *  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
 *  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
 *  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
 *  PURPOSE.
 *
 *  Copyright (c) 1993 - 1997  Microsoft Corporation.  All Rights Reserved.
 *
 **************************************************************************/

#include <windows.h>
#include "amcap.h"

AMCapIcon ICON "amcap.ico"

ID_APP menu
begin
    POPUP "&File"
	begin
            MENUITEM "Set Capture File..."          , MENU_SET_CAP_FILE
            MENUITEM "Allocate File Space..."       , MENU_ALLOC_CAP_FILE
            MENUITEM "Save Captured Video As..."    , MENU_SAVE_CAP_FILE
            MENUITEM SEPARATOR
            MENUITEM "E&xit"                        , MENU_EXIT
        end
    POPUP "&Devices"
        begin
            MENUITEM SEPARATOR
	end
    POPUP "&Options"
        begin
            MENUITEM "Preview"     	   , MENU_PREVIEW
            MENUITEM SEPARATOR
            MENUITEM "Audio Format..."     , MENU_AUDIOFORMAT
            MENUITEM SEPARATOR
	    /* VIDEO dialogs are made dynamically */
        end
    POPUP "&Capture"
        begin
            MENUITEM "Start Capture"       , MENU_START_CAP
            MENUITEM "Stop Capture"        , MENU_STOP_CAP
            MENUITEM SEPARATOR
            MENUITEM "Capture Audio"       , MENU_CAP_AUDIO
            POPUP    "Master Stream"
	    BEGIN
			MENUITEM "None"			MENU_NOMASTER
			MENUITEM "Audio"		MENU_AUDIOMASTER
			MENUITEM "Video"		MENU_VIDEOMASTER
	    END
            MENUITEM "Set Frame Rate..."   , MENU_FRAMERATE
            MENUITEM "Set Time Limit..."   , MENU_TIMELIMIT
        end
    POPUP "&Help"
        begin
            MENUITEM "&About..."        , MENU_ABOUT
        end
end

/*
 * Dialogs
 */

// About Dialog
IDD_ABOUT DIALOG 10, 20, 187, 94
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "About..."
FONT 8, "MS Sans Serif"
BEGIN
    CTEXT           "AMCAP", -1, 6, 5, 175, 8, NOT WS_GROUP
    CTEXT           "Version 1.00", -1, 6, 20, 175, 8, NOT WS_GROUP
    CTEXT	    "Copyright © 1997 Microsoft Corp.", -1, 6, 35, 175,
                    8, NOT WS_GROUP
    //CTEXT	    "This app will be finished... tomorrow", -1, 0, 55, 190,
    //                8, NOT WS_GROUP
    DEFPUSHBUTTON   "OK", IDOK, 77, 74, 32, 14, WS_GROUP
END


IDD_AllocCapFileSpace DIALOG 6, 18, 160, 105
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | DS_3DLOOK
CAPTION "Set File Size"
FONT 8, "Helv"
BEGIN
    LTEXT           "Enter the amount of disk space to set ", -1, 5, 9, 130,
                    8
    LTEXT           "aside for the capture file.  Existing video", -1, 5, 19,
                    135, 8
    LTEXT           "data in the file will be lost.", -1, 5, 29, 93, 8
    LTEXT           "Free disk space:", -1, 5, 50, 59, 8
    LTEXT           "     ", IDD_SetCapFileFree, 73, 50, 20, 8
    LTEXT           "MBytes", -1, 96, 50, 27, 8
    LTEXT           "Capture file size:", -1, 5, 64, 60, 8
    EDITTEXT        IDD_SetCapFileSize, 65, 64, 28, 12, ES_AUTOHSCROLL
    LTEXT           "MBytes", -1, 96, 64, 27, 8
    PUSHBUTTON      "OK", IDOK, 38, 84, 40, 14
    PUSHBUTTON      "Cancel", IDCANCEL, 88, 84, 40, 14
END


IDD_PressAKeyDialog DIALOG LOADONCALL MOVEABLE DISCARDABLE 12, 29, 121, 60
CAPTION "Ready to Capture"
FONT 8, "Helv"
STYLE WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | DS_MODALFRAME | WS_POPUP
BEGIN
    CONTROL "Select OK to start capture of video sequence to:",
		-1, "static", SS_LEFT | WS_CHILD, 5, 4, 100, 16
    CONTROL "", IDC_CAPFILENAME, "static", SS_LEFT | WS_CHILD, 5, 23, 100, 16
    CONTROL "OK", IDOK, "button", BS_DEFPUSHBUTTON | WS_TABSTOP | WS_CHILD,
		18, 42, 32, 14
    CONTROL "Cancel", IDCANCEL, "button", BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD,
		69, 42, 32, 14
END


IDD_FrameRateDialog DIALOG LOADONCALL MOVEABLE DISCARDABLE 12, 29, 121, 50
CAPTION "Choose Frame Rate"
FONT 8, "Helv"
STYLE WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | DS_MODALFRAME | WS_POPUP
BEGIN
    CONTROL "&Frame Rate:", -1, "static", SS_LEFT | WS_CHILD, 3, 11, 43, 8
    CONTROL "", IDC_FRAMERATE, "edit", WS_BORDER | WS_TABSTOP | WS_CHILD, 44, 9, 44, 12
    CONTROL "f/sec", -1, "static", SS_LEFT | WS_CHILD, 93, 11, 18, 8
    CONTROL "OK", IDOK, "button", BS_DEFPUSHBUTTON | WS_TABSTOP | WS_CHILD, 18, 30, 32, 14
    CONTROL "Cancel", IDCANCEL, "button", BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 69, 30, 32, 14
END


IDD_TimeLimitDialog DIALOG LOADONCALL MOVEABLE DISCARDABLE 12, 29, 121, 50
CAPTION "Capture Time Limit"
FONT 8, "Helv"
STYLE WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_SYSMENU | DS_MODALFRAME | WS_POPUP
BEGIN
    CONTROL "", IDC_USETIMELIMIT "button", BS_AUTOCHECKBOX | WS_TABSTOP, 3, 4, 9, 8
    CONTROL "Use Time Limit", -1, "static", SS_LEFT | WS_CHILD, 13, 4, 73, 8
    CONTROL "&Time Limit:", -1, "static", SS_LEFT | WS_CHILD, 3, 18, 43, 8
    CONTROL "", IDC_TIMELIMIT, "edit", WS_BORDER | WS_TABSTOP | WS_CHILD, 44, 16, 44, 12
    CONTROL "sec", -1, "static", SS_LEFT | WS_CHILD, 93, 18, 18, 8
    CONTROL "OK", IDOK, "button", BS_DEFPUSHBUTTON | WS_TABSTOP | WS_CHILD, 18, 33, 32, 14
    CONTROL "Cancel", IDCANCEL, "button", BS_PUSHBUTTON | WS_TABSTOP | WS_CHILD, 69, 33, 32, 14
END
