home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / som / somem / c / emdemo / main.rc < prev    next >
Encoding:
Text File  |  1996-01-24  |  3.0 KB  |  99 lines

  1. /*
  2.  *   COMPONENT_NAME: somx
  3.  *
  4.  *   ORIGINS: 27
  5.  *
  6.  *
  7.  *   10H9767, 10H9769  (C) COPYRIGHT International Business Machines Corp. 1992,1994
  8.  *   All Rights Reserved
  9.  *   Licensed Materials - Property of IBM
  10.  *   US Government Users Restricted Rights - Use, duplication or
  11.  *   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  12.  */
  13. /*   %Z% %I% %W% %G% %U% [%H% %T%] */
  14.  
  15. /*
  16.  *
  17.  * DISCLAIMER OF WARRANTIES.
  18.  * The following [enclosed] code is sample code created by IBM
  19.  * Corporation. This sample code is not part of any standard or IBM
  20.  * product and is provided to you solely for the purpose of assisting
  21.  * you in the development of your applications.  The code is provided
  22.  * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
  23.  * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  24.  * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
  25.  * THIS CODE.  IBM shall not be liable for any damages arising out of
  26.  * your use of the sample code, even if they have been advised of the
  27.  * possibility of such damages.
  28.  *
  29.  * DISTRIBUTION.
  30.  * This sample code can be freely distributed, copied, altered, and
  31.  * incorporated into other software, provided that it bears the above
  32.  * Copyright notice and DISCLAIMER intact.
  33.  */
  34.  
  35. #include <windows.h>
  36. #include "main.h"
  37.  
  38. MainMenu MENU
  39. BEGIN
  40.     POPUP "&Register"
  41.     BEGIN
  42.         MENUITEM "&Work Procedure\tW",   IDM_REGPROC
  43.         MENUITEM "&Socket\tP",           IDM_REGSOCK
  44.         MENUITEM "&Timer\tT",            IDM_REGTIMER
  45.     MENUITEM "&Update Timer\tU",     IDM_UPDTIMER, GRAYED
  46.     END
  47.  
  48.     POPUP "&Unregister"
  49.     BEGIN
  50.     MENUITEM "&Work Procedure\tw",     IDM_UNREGPROC, GRAYED
  51.     MENUITEM "&Socket\tp",         IDM_UNREGSOCK, GRAYED
  52.     MENUITEM "&Timer\tt",         IDM_UNREGTIMER, GRAYED
  53.     END
  54.  
  55.     POPUP "&Event"
  56.     BEGIN
  57.         MENUITEM "Client &1\tc",         IDM_CLIENT1
  58.         MENUITEM "Client &2\tC",         IDM_CLIENT2
  59.     MENUITEM "&Send on Socket\tS",     IDM_SEND, GRAYED
  60.     END
  61.  
  62.     MENUITEM "&Quit",             IDM_QUIT
  63.  
  64. END
  65.  
  66. MainAccel ACCELERATORS
  67. BEGIN
  68.     "W", IDM_REGPROC
  69.     "w", IDM_UNREGPROC
  70.     "P", IDM_REGSOCK
  71.     "p", IDM_UNREGSOCK
  72.     "T", IDM_REGTIMER
  73.     "t", IDM_UNREGTIMER
  74.     "U", IDM_UPDTIMER
  75.     "C", IDM_CLIENT1
  76.     "c", IDM_CLIENT2
  77.     "S", IDM_SEND
  78.     "Q", IDM_QUIT
  79.  
  80. END
  81.  
  82. STRINGTABLE
  83. BEGIN
  84. EMANSAMPLEERRORID    "EMAN Sample Error"
  85. UnknownCommandId    "Unknown command: %c\r\n"
  86. CallbackId        "callback: Perceived Sink Event event with data %s\r\n"
  87. ClientEventDataId    "Client Event Data: %s"
  88. UnknownEventTypeId    "Unknown Event type in callback\n"
  89. DestroyId        "I'm being destroyed (%ld,%d)"
  90. EventType1Id        "This is a test for EMObject: client event type 1"
  91. HelloMomId        "Hello Mom"
  92. EventType2Id "This is a test for callBack proc: client event type 2"
  93. HelloDadId         "Hello Dad" 
  94. SOMEventMgrId        "SOM Event Manager sample"
  95. StartEMANLoopId      "Starting EMAN loop..."
  96. LeftEMANLoopId        "...Left EMAN loop"
  97. QuittingId        "Quitting... iRc=%d"
  98. END
  99.