/*****************************************************************************/
/*                                                                           */
/*  File name   : PCSMAIN.RC                                                 */
/*                                                                           */
/*  Description : This resource file contains the menu definitions.          */
/*                                                                           */
/*  Concepts    : resource script                                            */
/*                                                                           */
/*                                                                           */
/*  Copyright  (C)  1994, 1996 IBM  Corporation                              */
/*                          All rights reserved.                             */
/*                                                                           */
/*****************************************************************************/
#include "windows.h"
#include "pcsmain.h"

//
// Icon
//

ICONPCSMAIN             ICON    DISCARDABLE     "pcsmain.ico"

//
// Menu
//

PCSMAIN MENU DISCARDABLE
BEGIN
    POPUP "&File"
    BEGIN
        MENUITEM "&About PCSMAIN...",           IDM_FILE_ABOUT
        MENUITEM "&Clear Log",                  IDM_FILE_CLEAR
        MENUITEM "Change &Title...",            IDM_FILE_TITLE
        MENUITEM "&Exit",                       IDM_FILE_EXIT
        MENUITEM SEPARATOR
        MENUITEM "&Always on Top",              IDM_FILE_TOP
    END
    POPUP "&PCSAPI"
    BEGIN
        MENUITEM "&Start Session",              IDM_PCSAPI_START
        MENUITEM "S&top Session",               IDM_PCSAPI_STOP
        MENUITEM "&Query Emulator Status",      IDM_PCSAPI_STATUS
        MENUITEM "Query &Workstation Profile",  IDM_PCSAPI_PROFILE
        MENUITEM "&Connect Session",            IDM_PCSAPI_CONN
        MENUITEM "&Disconnect Session",         IDM_PCSAPI_DISCONN
        MENUITEM "Set &Link Timeout",           IDM_PCSAPI_TIMEOUT
    END
END

//
// Dialog
//

ABOUTBOX DIALOG DISCARDABLE  22, 17, 160, 68
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "About PCSMAIN"
BEGIN
    ICON            ICONPCSMAIN,ID_IGNORE,5,5,20,24
    LTEXT           "PCSMAIN PCSAPI Sample Program",ID_IGNORE,34,5,150,10,
                    NOT WS_GROUP
    LTEXT           " Version: 1.00",ID_IGNORE,34,15,150,10,NOT WS_GROUP
    LTEXT           "© Copyright IBM Corp. 1994,1996", ID_IGNORE, 34, 25, 150,
                    10,NOT WS_GROUP
    LTEXT           "           All rights reserved.", ID_IGNORE, 34,35,150,10,NOT WS_GROUP
    DEFPUSHBUTTON   "&OK",IDOK,50,50,60,15,NOT WS_TABSTOP
END

TITLEBOX DIALOG DISCARDABLE  22, 17, 144, 49
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Change Title"
BEGIN
    LTEXT           "&Title:",-1,3,4,84,10
    EDITTEXT        IDD_TITLE,3,15,137,12,ES_AUTOHSCROLL
    PUSHBUTTON      "OK",IDOK,24,32,40,14,WS_GROUP
    PUSHBUTTON      "Cancel",IDCANCEL,80,32,40,14
END

START_DLG DIALOG DISCARDABLE  28, 33, 209, 126
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Start Session"
BEGIN
    GROUPBOX        "Session ID",DID_SESID_GP,8,93,58,24
    EDITTEXT        DID_SESID,13,103,8,10
    GROUPBOX        "Profile name",DID_PRONAME_GP,70,93,130,24
    EDITTEXT        DID_PRONAME,75,103,120,10,ES_AUTOHSCROLL
    GROUPBOX        "Window's visibility",DID_VIS_GP,8,39,192,46
    CONTROL         "Hide",DID_HIDE,"Button",BS_AUTORADIOBUTTON | WS_GROUP |
                    WS_TABSTOP,13,70,84,10
    CONTROL         "Show",DID_SHOW,"Button",BS_AUTORADIOBUTTON,107,70,84,10
    CONTROL         "Show Minimized",DID_SHOW_MIN,"Button",
                    BS_AUTORADIOBUTTON,13,50,84,10
    CONTROL         "Show Maximized",DID_SHOW_MAX,"Button",
                    BS_AUTORADIOBUTTON,107,50,84,10
    PUSHBUTTON      "Start Session",IDOK,32,11,62,14,WS_GROUP
    PUSHBUTTON      "Exit",IDCANCEL,110,11,62,14
END

STOP_DLG DIALOG DISCARDABLE  102, 76, 186, 97
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Stop Session"
BEGIN
    GROUPBOX        "Session ID",DID_SESID_GP,8,71,58,24
    EDITTEXT        DID_SESID,13,81,8,10
    GROUPBOX        "Saving Profile",DID_PRO_SAVE_GP,8,10,170,47
    CONTROL         "Do as specified in profile",DID_SAVE_AS_PROFILE,
                    "Button",BS_AUTORADIOBUTTON | WS_GROUP | WS_TABSTOP,13,
                    41,120,10
    CONTROL         "Save on exit",DID_SAVE_ON_EXIT,"Button",
                    BS_AUTORADIOBUTTON,13,31,120,10
    CONTROL         "Do not save",DID_NOSAVE_ON_EXIT,"Button",
                    BS_AUTORADIOBUTTON,13,21,120,10
    PUSHBUTTON      "Stop session",IDOK,116,79,62,14,WS_GROUP
    PUSHBUTTON      "Exit",IDCANCEL,116,61,62,14
END

STATUS_DLG DIALOG DISCARDABLE  83, 79, 186, 97
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Query Emulator Status"
BEGIN
    GROUPBOX        "Session ID",DID_SESID_GP,8,71,58,24
    EDITTEXT        DID_SESID,13,81,8,10
    PUSHBUTTON      "Query Status",IDOK,116,79,62,14
    PUSHBUTTON      "Exit",IDCANCEL,116,61,62,14
    GROUPBOX        "Emulator Status",105,8,10,170,47
    LTEXT           "Session status :",DID_STARTED_ST,13,40,70,10
    LTEXT           "Communication :",DID_ONLINE_ST,13,30,70,10
    LTEXT           "DDE/EHLLAPI :",DID_API_ENABLED_ST,13,20,70,10
    LTEXT           "",DID_STARTED,85,40,85,10
    LTEXT           "",DID_ONLINE,85,30,85,10
    LTEXT           "",DID_API_ENABLED,85,20,85,10
END

PROF_DLG DIALOG DISCARDABLE  83, 98, 186, 78
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Query Workstation Profile"
BEGIN
    GROUPBOX        "Session ID",DID_SESID_GP,8,44,58,24
    EDITTEXT        DID_SESID,13,54,8,10
    GROUPBOX        "Profile name",DID_PRONAME_GP,8,6,170,24
    EDITTEXT        DID_PRONAME,13,16,160,10
    PUSHBUTTON      "Query Profile",IDOK,116,52,62,14
    PUSHBUTTON      "Exit",IDCANCEL,116,34,62,14
END

CONN_DLG DIALOG DISCARDABLE  102, 76, 186, 45
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Connect Session"
FONT 8, "System"
BEGIN
    GROUPBOX        "Session ID",DID_SESID_GP,8,1,58,24
    EDITTEXT        DID_SESID,13,11,8,10
    PUSHBUTTON      "Connect",IDOK,116,24,62,14,WS_GROUP
    PUSHBUTTON      "Exit",IDCANCEL,116,6,62,14
END

DISCONN_DLG DIALOG DISCARDABLE  102, 76, 186, 45
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Disconnect Session"
BEGIN
    GROUPBOX        "Session ID",DID_SESID_GP,8,1,58,24
    EDITTEXT        DID_SESID,13,11,8,10
    PUSHBUTTON      "Disconnect",IDOK,116,24,62,14,WS_GROUP
    PUSHBUTTON      "Exit",IDCANCEL,116,6,62,14
END

TIMEOUT_DLG DIALOG DISCARDABLE  83, 98, 186, 78
STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
CAPTION "Set Link Timeout"
BEGIN
    GROUPBOX        "Session ID",DID_SESID_GP,8,44,58,24
    EDITTEXT        DID_SESID,13,54,8,10
    GROUPBOX        "Timeout value",DID_TIMEOUTVALUE_GP,8,6,170,24
    EDITTEXT        DID_TIMEOUTVALUE,13,16,12,10
    PUSHBUTTON      "Set Link Timeout",IDOK,116,52,62,14
    PUSHBUTTON      "Exit",IDCANCEL,116,34,62,14
END


#ifndef _MAC
/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 1,0,0,1
 PRODUCTVERSION 1,0,0,1
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
 FILETYPE 0x1L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904b0"
        BEGIN
            VALUE "Comments", "\0"
            VALUE "CompanyName", "\0"
            VALUE "FileDescription", "PCSMAIN MFC Application\0"
            VALUE "FileVersion", "1, 0, 0, 1\0"
            VALUE "InternalName", "PCSMAIN\0"
            VALUE "LegalCopyright", "Copyright © 1989, 2002\0"
            VALUE "LegalTrademarks", "\0"
            VALUE "OriginalFilename", "PCSMAIN.EXE\0"
            VALUE "PrivateBuild", "\0"
            VALUE "ProductName", "PCSMAIN Application\0"
            VALUE "ProductVersion", "1, 0, 0, 1\0"
            VALUE "SpecialBuild", "\0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1200
    END
END

#endif    // !_MAC



//
// String Table
//

STRINGTABLE DISCARDABLE
BEGIN
    LS_MENU                 "PCSMAIN"
    LS_LISTBOX              "ListBox"
    LS_CLASS                "PCSMAINClass"
END

STRINGTABLE DISCARDABLE
BEGIN
    LS_TITLE                "PCSMAIN"
    LS_NO_SESSIONID         "No Session ID specified"
    LS_NO_PROFILENAME       "No Profile name specified"
    LS_SESSION_NOTSTARTED   "Session not started, or invalid Session ID specified"
    LS_INVALID_SESSIONID    "Invalid Session ID specified"
    LS_ACTIVE_SESSIONID     "Specified Session ID already active"
    LS_PROFILE_ERROR        "Error found in Profile"
    LS_SYSTEM_ERROR         "System error"
    LS_SAMPLE_PROGRAM       "PCSAPI Sample Program"
    LS_SESSION_CANNOTSTOP   "Session not started, \ninvalid Session ID specified, or \ncannot stop the session"
    LS_NO_TIMEOUTVALUE      "No Timeout value specified"
    LS_INVALID_TIMEOUTVALUE "Invalid Timeout value specified"
    LS_TIMEOUT_ERROR        "Error setting link Timeout"
END
