home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / som / somd / cpp / stack / somstack.rc < prev    next >
Encoding:
Text File  |  1996-01-24  |  3.1 KB  |  91 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.  
  14. /* %Z% %I% %W% %G% %U% [%H% %T%] */
  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 "somstack.h"
  37.  
  38.  
  39. STACKABOUT DIALOG DISCARDABLE LOADONCALL MOVEABLE 10, 35, 225, 119
  40. STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME
  41. CAPTION "About the Stack Client Application"
  42. BEGIN
  43.   CONTROL "DSOM Stack Client for Microsoft Windows", 101, "STATIC", WS_CHILD | WS_VISIBLE | SS_CENTER, 46, 42, 131, 26
  44.   CONTROL "Ok", ID_OK, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_DEFPUSHBUTTON, 90, 77, 39, 20
  45.   CONTROL "Client", 302, "STATIC", WS_CHILD | WS_VISIBLE | SS_ICON, 103, 10, 20, 20
  46. END
  47.  
  48. PUSH DIALOG DISCARDABLE LOADONCALL MOVEABLE 9, 34, 204, 103
  49. STYLE WS_POPUP | WS_CAPTION | DS_MODALFRAME
  50. CAPTION "DSOM Stack Pusher"
  51. BEGIN
  52.   CONTROL "Enter the number that you want to push:", ID_PROMPT, "STATIC", WS_CHILD | WS_VISIBLE | SS_CENTER, 28, 9, 138, 17
  53.   CONTROL "100", ID_TEXT, "EDIT", WS_CHILD | WS_VISIBLE | WS_BORDER | WS_GROUP | WS_TABSTOP | ES_CENTER, 75, 34, 50, 14
  54.   CONTROL "Ok", ID_OK, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_DEFPUSHBUTTON, 35, 64, 50, 20
  55.   CONTROL "Cancel", ID_CANCEL, "BUTTON", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 115, 64, 50, 20
  56. END
  57.  
  58. STRINGTABLE
  59. {
  60.     IDS_APPNAME, "somstack"
  61.     IDS_CAPTION, "DSOM Stack Client"
  62.     EmptyStackId "Empty Stack -- Better Push"
  63.     StackTopId     "Stack Top: %d"
  64.     StackAboutId     "StackAbout"
  65.     PushId         "Push"
  66.     ValueId     "Value=%d"
  67.     PushAcceptedId     "Push Accepted"
  68.     ErrorId     "Error Occurred \nexception string: %s\n"
  69.     ErrorMinorCodeId "minor error code: %u\n"
  70.     ErrorCompletionId " completion code: %s\n"
  71.     YesId        "YES"
  72.     NoId        "NO"
  73.     MaybeId     "MAYBE"
  74.     ExceptionId     "Exception"
  75.  
  76. }
  77.  
  78. StackMenu MENU
  79. {
  80.     POPUP "&File"
  81.     {
  82.         MENUITEM "&About...", IDM_ABOUT
  83.         MENUITEM "E&xit",     IDM_EXIT
  84.     }
  85.     POPUP "&Stack"
  86.     {
  87.         MENUITEM "P&ush",      IDM_PUSH
  88.         MENUITEM "&Pop",       IDM_POP
  89.     }
  90. }
  91.