home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pentlk11.zip / WRTSAMPL.RC < prev    next >
Text File  |  1994-01-13  |  3KB  |  93 lines

  1. /*************************************************************************
  2. *
  3. *  File Name   : WRTSAMPL.RC
  4. *
  5. *  Description : Example of WRT APIs
  6. *
  7. *  Function:  This is a sample of all Wrt APIs
  8. *
  9. *
  10. *  Copyright (C) 1992 IBM Corporation
  11. *
  12. *      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
  13. *      sample code created by IBM Corporation. This sample code is not
  14. *      part of any standard or IBM product and is provided to you solely
  15. *      for  the purpose of assisting you in the development of your
  16. *      applications.  The code is provided "AS IS", without
  17. *      warranty of any kind.  IBM shall not be liable for any damages
  18. *      arising out of your use of the sample code, even if they have been
  19. *      advised of the possibility of such damages.                                                    *
  20. *
  21. ************************************************************************/
  22.  
  23. #include <os2.h>
  24. #include <penpm.h>
  25. #include "wrtsampl.h"
  26.  
  27. ICON    ID_MAIN  "wrtsampl.ico"
  28. POINTER PTR_BLOB "blob.ptr"
  29.  
  30. STRINGTABLE
  31. BEGIN
  32.  WRTERR_INVALID_BUFFER,      "The buffer to the structure is invalid"
  33.  WRTERR_INVALID_BUTTON_ID,   "Invalid Button ID"
  34.  WRTERR_INVALID_DISPLAY_ID,  "Invalid Display ID"
  35.  WRTERR_INVALID_HWND,        "Invalid window handle specified"
  36.  WRTERR_INVALID_ID,          "Value ID is invalid for profile"
  37.  WRTERR_INVALID_LOCATOR_ID,  "Invalid Locator ID"
  38.  WRTERR_INVALID_PARM, "One of the parameters to the WrtQuryLocatorCaps function is invalid"
  39.  WRTERR_INVALID_POINTER,     "The pointer to the buffer is invalid"
  40.  WRTERR_MORE_NAMES_AVAIL,    "There are more names available to read"
  41.  WRTERR_NOT_ACTIVE,          "Pen for OS/2 is not active"
  42.  WRTERR_PARM_OUT_OF_RANGE, "The Parameter for the Value ID is out of range"
  43.  WRTERR_STRUCT_NOT_INIT, "The structure is not initialize"
  44.  WRTERR_WRITE_FAILED,    "An error was returned from WinWritePfileString function"
  45.  WRTERR_STROKE_INVALID, "Invalid Stroke was returned"
  46.  IDMSG_UNKOWN,              "Unknown error [%#x] was returned"
  47. END
  48.  
  49. MENU ID_MAIN
  50.   {
  51.   SUBMENU "~Options",              -1
  52.     {
  53.     MENUITEM "Clear\tEsc",         ID_CLEAR
  54.     MENUITEM "E~xit",              ID_EXIT
  55.     }
  56.   SUBMENU "~Capabilities",              -1
  57.     {
  58.     MENUITEM "~System Caps",        ID_SCAPS
  59.     MENUITEM "~Locator Caps",       ID_LCAPS
  60.     MENUITEM "~Button Caps",        ID_BCAPS
  61.     MENUITEM "~Display Caps",       ID_DCAPS
  62.     }
  63.   SUBMENU "~System Value",              -1
  64.     {
  65.     MENUITEM "~Query Value",        ID_QSVAL
  66.     MENUITEM "~Set Value...",          ID_SSVAL
  67.     MENUITEM "~Write Value...",        ID_WSVAL
  68.     MENUITEM "~Read Value...",         ID_RSVAL
  69.     }
  70.   SUBMENU "~Devices",              -1
  71.     {
  72.     MENUITEM "~Enum Drivers",       ID_ENUDR
  73.     MENUITEM "Query ~Names",        ID_QDNAM
  74.     MENUITEM "Query ~Variable",     ID_QDVAR
  75.     MENUITEM "~Set Variable...",       ID_SDVAR
  76.     }
  77.   SUBMENU "~Miscellaneous",              -1
  78.     {
  79.     MENUITEM "~Strict Emulation",   ID_SEMUL
  80.     MENUITEM "~Backlight...",          ID_BACKL
  81.     MENUITEM "Toggle ~M/S",         ID_FULL
  82.     MENUITEM "Toggle ~Aux",         ID_AUX
  83.     MENUITEM "Toggle ~Event",       ID_EVENT
  84.     }
  85.   }
  86.  
  87. ACCELTABLE ID_MAIN
  88.   {
  89.   VK_ESC,  ID_CLEAR,    VIRTUALKEY
  90.   }
  91.  
  92. rcinclude wrtsampl.dlg
  93.