/*************************************************************************
*
*  File Name   : WRTSAMPL.RC
*
*  Description : Example of WRT APIs
*
*  Function:  This is a sample of all Wrt APIs
*
*
*  Copyright (C) 1992 IBM Corporation
*
*      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
*      sample code created by IBM Corporation. This sample code is not
*      part of any standard or IBM product and is provided to you solely
*      for  the purpose of assisting you in the development of your
*      applications.  The code is provided "AS IS", without
*      warranty of any kind.  IBM shall not be liable for any damages
*      arising out of your use of the sample code, even if they have been
*      advised of the possibility of such damages.                                                    *
*
************************************************************************/

#include <os2.h>
#include <penpm.h>
#include "wrtsampl.h"

ICON    ID_MAIN  "wrtsampl.ico"
POINTER PTR_BLOB "blob.ptr"

STRINGTABLE
BEGIN
 WRTERR_INVALID_BUFFER,      "The buffer to the structure is invalid"
 WRTERR_INVALID_BUTTON_ID,   "Invalid Button ID"
 WRTERR_INVALID_DISPLAY_ID,  "Invalid Display ID"
 WRTERR_INVALID_HWND,        "Invalid window handle specified"
 WRTERR_INVALID_ID,          "Value ID is invalid for profile"
 WRTERR_INVALID_LOCATOR_ID,  "Invalid Locator ID"
 WRTERR_INVALID_PARM, "One of the parameters to the WrtQuryLocatorCaps function is invalid"
 WRTERR_INVALID_POINTER,     "The pointer to the buffer is invalid"
 WRTERR_MORE_NAMES_AVAIL,    "There are more names available to read"
 WRTERR_NOT_ACTIVE,          "Pen for OS/2 is not active"
 WRTERR_PARM_OUT_OF_RANGE, "The Parameter for the Value ID is out of range"
 WRTERR_STRUCT_NOT_INIT, "The structure is not initialize"
 WRTERR_WRITE_FAILED,    "An error was returned from WinWritePfileString function"
 WRTERR_STROKE_INVALID, "Invalid Stroke was returned"
 IDMSG_UNKOWN,              "Unknown error [%#x] was returned"
END

MENU ID_MAIN
  {
  SUBMENU "~Options",              -1
    {
    MENUITEM "Clear\tEsc",         ID_CLEAR
    MENUITEM "E~xit",              ID_EXIT
    }
  SUBMENU "~Capabilities",              -1
    {
    MENUITEM "~System Caps",        ID_SCAPS
    MENUITEM "~Locator Caps",       ID_LCAPS
    MENUITEM "~Button Caps",        ID_BCAPS
    MENUITEM "~Display Caps",       ID_DCAPS
    }
  SUBMENU "~System Value",              -1
    {
    MENUITEM "~Query Value",        ID_QSVAL
    MENUITEM "~Set Value...",          ID_SSVAL
    MENUITEM "~Write Value...",        ID_WSVAL
    MENUITEM "~Read Value...",         ID_RSVAL
    }
  SUBMENU "~Devices",              -1
    {
    MENUITEM "~Enum Drivers",       ID_ENUDR
    MENUITEM "Query ~Names",        ID_QDNAM
    MENUITEM "Query ~Variable",     ID_QDVAR
    MENUITEM "~Set Variable...",       ID_SDVAR
    }
  SUBMENU "~Miscellaneous",              -1
    {
    MENUITEM "~Strict Emulation",   ID_SEMUL
    MENUITEM "~Backlight...",          ID_BACKL
    MENUITEM "Toggle ~M/S",         ID_FULL
    MENUITEM "Toggle ~Aux",         ID_AUX
    MENUITEM "Toggle ~Event",       ID_EVENT
    }
  }

ACCELTABLE ID_MAIN
  {
  VK_ESC,  ID_CLEAR,    VIRTUALKEY
  }

rcinclude wrtsampl.dlg
