home *** CD-ROM | disk | FTP | other *** search
- /*
- * COMPONENT_NAME: somx
- *
- * ORIGINS: 27
- *
- *
- * 10H9767, 10H9769 (C) COPYRIGHT International Business Machines Corp. 1992,1994
- * All Rights Reserved
- * Licensed Materials - Property of IBM
- * US Government Users Restricted Rights - Use, duplication or
- * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
-
- /* %Z% %I% %W% %G% %U% [%H% %T%] */
- /*
- *
- * 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". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
- * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
- * THIS CODE. 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.
- *
- * DISTRIBUTION.
- * This sample code can be freely distributed, copied, altered, and
- * incorporated into other software, provided that it bears the above
- * Copyright notice and DISCLAIMER intact.
- */
-
- #include <windows.h>
- #include "somstack.h"
-
-
- STACKABOUT DIALOG DISCARDABLE LOADONCALL MOVEABLE 10, 35, 225, 119
- STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU | DS_MODALFRAME
- CAPTION "About the Stack Client Application"
- BEGIN
- CONTROL "DSOM Stack Client for Microsoft Windows", 101, "STATIC", WS_CHILD | WS_VISIBLE | SS_CENTER, 46, 42, 131, 26
- CONTROL "Ok", ID_OK, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_DEFPUSHBUTTON, 90, 77, 39, 20
- CONTROL "Client", 302, "STATIC", WS_CHILD | WS_VISIBLE | SS_ICON, 103, 10, 20, 20
- END
-
- PUSH DIALOG DISCARDABLE LOADONCALL MOVEABLE 9, 34, 204, 103
- STYLE WS_POPUP | WS_CAPTION | DS_MODALFRAME
- CAPTION "DSOM Stack Pusher"
- BEGIN
- CONTROL "Enter the number that you want to push:", ID_PROMPT, "STATIC", WS_CHILD | WS_VISIBLE | SS_CENTER, 28, 9, 138, 17
- CONTROL "100", ID_TEXT, "EDIT", WS_CHILD | WS_VISIBLE | WS_BORDER | WS_GROUP | WS_TABSTOP | ES_CENTER, 75, 34, 50, 14
- CONTROL "Ok", ID_OK, "BUTTON", WS_CHILD | WS_VISIBLE | WS_TABSTOP | BS_DEFPUSHBUTTON, 35, 64, 50, 20
- CONTROL "Cancel", ID_CANCEL, "BUTTON", BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 115, 64, 50, 20
- END
-
- STRINGTABLE
- {
- IDS_APPNAME, "somstack"
- IDS_CAPTION, "DSOM Stack Client"
- EmptyStackId "Empty Stack -- Better Push"
- StackTopId "Stack Top: %d"
- StackAboutId "StackAbout"
- PushId "Push"
- ValueId "Value=%d"
- PushAcceptedId "Push Accepted"
- ErrorId "Error Occurred \nexception string: %s\n"
- ErrorMinorCodeId "minor error code: %u\n"
- ErrorCompletionId " completion code: %s\n"
- YesId "YES"
- NoId "NO"
- MaybeId "MAYBE"
- ExceptionId "Exception"
-
- }
-
- StackMenu MENU
- {
- POPUP "&File"
- {
- MENUITEM "&About...", IDM_ABOUT
- MENUITEM "E&xit", IDM_EXIT
- }
- POPUP "&Stack"
- {
- MENUITEM "P&ush", IDM_PUSH
- MENUITEM "&Pop", IDM_POP
- }
- }
-