home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / zfamily.zip / zfamily / ZISFUNCS / SAMPLE / CHKFUN.H < prev    next >
Text File  |  1993-09-01  |  3KB  |  86 lines

  1. /*
  2. ** /----------------------------------------------------------------------\
  3. ** |             IBM Z Family Reusable Libraries/2 (5641-504)             |
  4. ** |----------------------------------------------------------------------|
  5. ** | (C) Copyright International Business Machines Corporation 1993, 1994 |
  6. ** |----------------------------------------------------------------------|
  7. ** |                       DISCLAIMER OF WARRANTIES                       |
  8. ** |                       ------------------------                       |
  9. ** | The following code is sample code created by IBM Corporation.        |
  10. ** | Such a code is provided to you solely for the purpose of assisting   |
  11. ** | you in the development of your applications. The code is provided    |
  12. ** | "AS IS", without warranty of any kind.  IBM shall not be liable for  |
  13. ** | any damages arising out of your use of the following code, even if   |
  14. ** | they have been advised of the possibility of such damages.           |                                                                         *
  15. ** \----------------------------------------------------------------------/
  16. **
  17. **  Header   : CHKFUN.H
  18. **  Authors  : Alessandro Cavallini (CAVALLI at ROMEPPC)
  19. **             Pino Venturella (VENTUREL at ROMEPPC)
  20. **  Reviewer : Dario de Judicibus (DEJUDICI at ROMEPPC)
  21. **  Created  : 08 Jul 1992
  22. **  Updated  : 31 Aug 1993
  23. **  Version  : 3.12
  24. **  Content  : Macro, variables and struct definitions for Test program.
  25. **
  26. */
  27.  #define INCL_PM
  28.  #include <os2.h>
  29.  #include <stdio.h>
  30.  #include <stdlib.h>
  31.  #include <string.h>
  32.  #include <ctype.h>
  33.  #include <process.h>
  34.  
  35.  #include <chkfun.rch>
  36.  
  37.  #define WM_FAILEDVALIDATE (WM_USER+0)
  38.  
  39. /*
  40. **  These structures are used to add the program name to the task list
  41. */
  42.  EXTERN HSWITCH hSwitch ;
  43.  EXTERN SWCNTRL Swctl ;
  44.  
  45.  EXTERN CHAR szAppName[20]; // Class name of application
  46.  
  47.  EXTERN HAB  hAB        ; // Handle to the Anchor Block
  48.  EXTERN HMQ  hMQ        ; // Handle to the Message Queue
  49.  EXTERN HWND hWndFrame  ; // Handle to the Window Frame
  50.  EXTERN HWND hWndClient ; // Handle to the Client Window
  51.  
  52.  typedef _Packed struct
  53.  {
  54.    char   TstFunTypeTbl[16][32] ;
  55.    char   TstFunType[33] ;
  56.    char   TstFunNotationTbl[16][32] ;
  57.    char   TstFunNotation[33] ;
  58.    char   TstFunInput[33] ;
  59.    int    TstFunResult ;
  60.    char   TstFunSample[33] ;
  61.  }
  62.  TSTFUNStruct ;
  63.  
  64.  #define OFFSET_TSTFUN 0
  65.  
  66. /*
  67. **  Function prototypes
  68. */
  69.  LONG cwCheckDlgItem     ( HWND, LONG, LONG ) ;
  70.  INT  cwCenter           ( HWND, HWND ) ;
  71.  INT  cwSetInitDlgStatus ( HWND ) ;
  72.  INT  cwFreeDlgMemory    ( HWND ) ;
  73.  INT  cwRegisterClass    ( VOID ) ;
  74.  
  75.  HWND cwCreateWindow ( HWND, ULONG, PCH, PCH, ULONG, INT, INT, INT, INT, \
  76.                        PHWND, ULONG, USHORT ) ;
  77.  
  78.  MRESULT EXPENTRY UDDateWndProc ( HWND, ULONG, MPARAM, MPARAM ) ;
  79.  MRESULT EXPENTRY UDEditWndProc ( HWND, ULONG, MPARAM, MPARAM ) ;
  80.  
  81.  #pragma linkage (WndProc, system)
  82.  MRESULT EXPENTRY WndProc       ( HWND, ULONG, MPARAM, MPARAM ) ;
  83.  #pragma linkage (TSTFUNMsgProc, system)
  84.  MRESULT EXPENTRY TSTFUNMsgProc ( HWND, ULONG, MPARAM, MPARAM ) ;
  85.  
  86.