home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / viscobv6.zip / vac22os2 / ibmcobol / samples / toolkit / wps / wpstutor / showdesc.h < prev    next >
C/C++ Source or Header  |  1996-11-19  |  10KB  |  183 lines

  1. /******************************************************************************
  2. *
  3. *  File Name  : SHOWDESC.H
  4. *
  5. *  Description: This include file contains the constants, structures,
  6. *               and function prototypes required for the application.
  7. *
  8. *  Copyright (C) 1993 IBM Corporation
  9. *
  10. *      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
  11. *      sample code created by IBM Corporation. This sample code is not
  12. *      part of any standard or IBM product and is provided to you solely
  13. *      for  the purpose of assisting you in the development of your
  14. *      applications.  The code is provided "AS IS", without
  15. *      warranty of any kind.  IBM shall not be liable for any damages
  16. *      arising out of your use of the sample code, even if they have been
  17. *      advised of the possibility of such damages.                                                    *
  18. *
  19. ******************************************************************************/
  20.  
  21. /*-----------------------------------------------------------------------------
  22. *    INCLUDE FILES
  23. *----------------------------------------------------------------------------*/
  24. #include "methodid.h"
  25.  
  26. /*-----------------------------------------------------------------------------
  27. *    WINDOW IDENTIFIERS
  28. *----------------------------------------------------------------------------*/
  29. #define IDR_MAIN           1     /* Frame window ID                          */
  30. #define IDD_MSGBOX      1001     /* Message Box ID                           */
  31. #define ID_MLE          1002     /* Multi-line Entry Field window ID         */
  32.  
  33. /*-----------------------------------------------------------------------------
  34. *    STRINGTABLE IDS
  35. *----------------------------------------------------------------------------*/
  36. #define IDS_APPNAME              1  /* Application name                      */
  37. #define IDS_TITLEBARSEPARATOR    2  /* Method name/description separator     */
  38. #define IDS_WARNING              3  /* "Warning" string                      */
  39. #define IDS_HARD_BREAK           4  /* Description separator                 */
  40.  
  41. /*-----------------------------------------------------------------------------
  42. *    MESSAGETABLE IDS
  43. *----------------------------------------------------------------------------*/
  44. #define IDMSG_INITFAILED              1   /* Initialization failed           */
  45. #define IDMSG_CANNOTLOADEXITLIST      2   /* Cannot load exit list processor */
  46. #define IDM_UNIDENTIFIED_METHOD       3   /* Unidentified method (name)      */
  47. #define IDM_UNIDENTIFIED_METHOD_MSG   4   /* Unidentified method             */
  48.                                           /*   (description)                 */
  49.  
  50.         /*---------------------------------------------------------------------
  51.         *    IDS FOR WPS INSTANCE METHOD DESCRIPTIONS
  52.         *--------------------------------------------------------------------*/
  53. #define IDS_WPADDFILEMENUPAGE_MSG      IDS_WPADDFILEMENUPAGE+1
  54. #define IDS_WPADDFILETYPEPAGE_MSG      IDS_WPADDFILETYPEPAGE+1
  55. #define IDS_WPADDFILE1PAGE_MSG         IDS_WPADDFILE1PAGE+1
  56. #define IDS_WPADDFILE2PAGE_MSG         IDS_WPADDFILE2PAGE+1
  57. #define IDS_WPADDFILE3PAGE_MSG         IDS_WPADDFILE3PAGE+1
  58. #define IDS_WPADDOBJECTGENERALPAGE_MSG IDS_WPADDOBJECTGENERALPAGE+1
  59. #define IDS_WPADDSETTINGSPAGES_MSG     IDS_WPADDSETTINGSPAGES+1
  60. #define IDS_WPADDTOOBJUSELIST_MSG      IDS_WPADDTOOBJUSELIST+1
  61. #define IDS_WPALLOCMEM_MSG             IDS_WPALLOCMEM+1
  62. #define IDS_WPCLOSE_MSG                IDS_WPCLOSE+1
  63. #define IDS_WPCOPIEDFROMTEMPLATE_MSG   IDS_WPCOPIEDFROMTEMPLATE+1
  64. #define IDS_WPCOPYOBJECT_MSG           IDS_WPCOPYOBJECT+1
  65. #define IDS_WPCREATEFROMTEMPLATE_MSG   IDS_WPCREATEFROMTEMPLATE+1
  66. #define IDS_WPCREATESHADOWOBJECT_MSG   IDS_WPCREATESHADOWOBJECT+1
  67. #define IDS_WPDELETE_MSG               IDS_WPDELETE+1
  68. #define IDS_WPDELETEFROMOBJUSELIST_MSG IDS_WPDELETEFROMOBJUSELIST+1
  69. #define IDS_WPDOESOBJECTMATCH_MSG      IDS_WPDOESOBJECTMATCH+1
  70. #define IDS_WPDRAGGEDOVEROBJECT_MSG    IDS_WPDRAGGEDOVEROBJECT+1
  71. #define IDS_WPDRAGOVER_MSG             IDS_WPDRAGOVER+1
  72. #define IDS_WPDROP_MSG                 IDS_WPDROP+1
  73. #define IDS_WPDROPPEDONOBJECT_MSG      IDS_WPDROPPEDONOBJECT+1
  74. #define IDS_WPENDCONVERSATION_MSG      IDS_WPENDCONVERSATION+1
  75. #define IDS_WPFILTERPOPUPMENU_MSG      IDS_WPFILTERPOPUPMENU+1
  76. #define IDS_WPFINDUSEITEM_MSG          IDS_WPFINDUSEITEM+1
  77. #define IDS_WPFORMATDRAGITEM_MSG       IDS_WPFORMATDRAGITEM+1
  78. #define IDS_WPFREE_MSG                 IDS_WPFREE+1
  79. #define IDS_WPFREEMEM_MSG              IDS_WPFREEMEM+1
  80. #define IDS_WPHIDE_MSG                 IDS_WPHIDE+1
  81. #define IDS_WPINITDATA_MSG             IDS_WPINITDATA+1
  82. #define IDS_WPINSERTPOPUPMENUITEMS_MSG IDS_WPINSERTPOPUPMENUITEMS+1
  83. #define IDS_WPINSERTSETTINGSPAGE_MSG   IDS_WPINSERTSETTINGSPAGE+1
  84. #define IDS_WPMENUITEMSELECTED_MSG     IDS_WPMENUITEMSELECTED+1
  85. #define IDS_WPMODIFYPOPUPMENU_MSG      IDS_WPMODIFYPOPUPMENU+1
  86. #define IDS_WPOPEN_MSG                 IDS_WPOPEN+1
  87. #define IDS_WPQUERYCONFIRMATIONS_MSG   IDS_WPQUERYCONFIRMATIONS+1
  88. #define IDS_WPQUERYDEFAULTVIEW_MSG     IDS_WPQUERYDEFAULTVIEW+1
  89. #define IDS_WPQUERYDETAILSDATA_MSG     IDS_WPQUERYDETAILSDATA+1
  90. #define IDS_WPQUERYHANDLE_MSG          IDS_WPQUERYHANDLE+1
  91. #define IDS_WPQUERYICON_MSG            IDS_WPQUERYICON+1
  92. #define IDS_WPQUERYICONDATA_MSG        IDS_WPQUERYICONDATA+1
  93. #define IDS_WPQUERYREALNAME_MSG        IDS_WPQUERYREALNAME+1
  94. #define IDS_WPQUERYSTYLE_MSG           IDS_WPQUERYSTYLE+1
  95. #define IDS_WPQUERYTITLE_MSG           IDS_WPQUERYTITLE+1
  96. #define IDS_WPQUERYTYPE_MSG            IDS_WPQUERYTYPE+1
  97. #define IDS_WPREGISTERVIEW_MSG         IDS_WPREGISTERVIEW+1
  98. #define IDS_WPRENDER_MSG               IDS_WPRENDER+1
  99. #define IDS_WPRENDERCOMPLETE_MSG       IDS_WPRENDERCOMPLETE+1
  100. #define IDS_WPRESTORE_MSG              IDS_WPRESTORE+1
  101. #define IDS_WPRESTOREDATA_MSG          IDS_WPRESTOREDATA+1
  102. #define IDS_WPRESTORELONG_MSG          IDS_WPRESTORELONG+1
  103. #define IDS_WPRESTORESTATE_MSG         IDS_WPRESTORESTATE+1
  104. #define IDS_WPRESTORESTRING_MSG        IDS_WPRESTORESTRING+1
  105. #define IDS_WPSAVEDATA_MSG             IDS_WPSAVEDATA+1
  106. #define IDS_WPSAVEDEFERRED_MSG         IDS_WPSAVEDEFERRED+1
  107. #define IDS_WPSAVEIMMEDIATE_MSG        IDS_WPSAVEIMMEDIATE+1
  108. #define IDS_WPSAVELONG_MSG             IDS_WPSAVELONG+1
  109. #define IDS_WPSAVESTATE_MSG            IDS_WPSAVESTATE+1
  110. #define IDS_WPSAVESTRING_MSG           IDS_WPSAVESTRING+1
  111. #define IDS_WPSETDEFAULTVIEW_MSG       IDS_WPSETDEFAULTVIEW+1
  112. #define IDS_WPSETICON_MSG              IDS_WPSETICON+1
  113. #define IDS_WPSETICONDATA_MSG          IDS_WPSETICONDATA+1
  114. #define IDS_WPSETREALNAME_MSG          IDS_WPSETREALNAME+1
  115. #define IDS_WPSETSTYLE_MSG             IDS_WPSETSTYLE+1
  116. #define IDS_WPSETTITLE_MSG             IDS_WPSETTITLE+1
  117. #define IDS_WPSETTYPE_MSG              IDS_WPSETTYPE+1
  118. #define IDS_WPSETUP_MSG                IDS_WPSETUP+1
  119. #define IDS_WPSWITCHTO_MSG             IDS_WPSWITCHTO+1
  120. #define IDS_WPUNLOCKOBJECT_MSG         IDS_WPUNLOCKOBJECT+1
  121. #define IDS_WPUNINITDATA_MSG           IDS_WPUNINITDATA+1
  122.  
  123.         /*---------------------------------------------------------------------
  124.         *    IDS FOR WPS CLASS METHOD DESCRIPTIONS
  125.         *--------------------------------------------------------------------*/
  126. #define IDS_WPCLSCREATEDEFATULTTEMPLATES_MSG IDS_WPCLSCREATEDEFAULTTEMPLATES+1
  127. #define IDS_WPCLSFINDOBJECTEND_MSG     IDS_WPCLSFINDOBJECTEND+1
  128. #define IDS_WPCLSFINDOBJECTFIRST_MSG   IDS_WPCLSFINDOBJECTFIRST+1
  129. #define IDS_WPCLSFINDOBJECTNEXT_MSG    IDS_WPCLSFINDOBJECTNEXT+1
  130. #define IDS_WPCLSINITDATA_MSG          IDS_WPCLSINITDATA+1
  131. #define IDS_WPCLSMAKEAWAKE_MSG         IDS_WPCLSMAKEAWAKE+1
  132. #define IDS_WPCLSNEW_MSG               IDS_WPCLSNEW+1
  133. #define IDS_WPCLSQUERYDEFAULTVIEW_MSG  IDS_WPCLSQUERYDEFAULTVIEW+1
  134. #define IDS_WPCLSQUERYDETAILS_MSG      IDS_WPCLSQUERYDETAILS+1
  135. #define IDS_WPCLSQUERYDETAILSINFO_MSG  IDS_WPCLSQUERYDETAILSINFO+1
  136. #define IDS_WPCLSQUERYFOLDER_MSG       IDS_WPCLSQUERYFOLDER+1
  137. #define IDS_WPCLSQUERYICON_MSG         IDS_WPCLSQUERYICON+1
  138. #define IDS_WPCLSQUERYICONDATA_MSG     IDS_WPCLSQUERYICONDATA+1
  139. #define IDS_WPCLSQUERYINSTANCEFILTER_MSG IDS_WPCLSQUERYINSTANCEFILTER+1
  140. #define IDS_WPCLSQUERYINSTANCETYPE_MSG IDS_WPCLSQUERYINSTANCETYPE+1
  141. #define IDS_WPCLSQUERYOBJECT_MSG       IDS_WPCLSQUERYOBJECT+1
  142. #define IDS_WPCLSQUERYOPENFOLDERS_MSG  IDS_WPCLSQUERYOPENFOLDERS+1
  143. #define IDS_WPCLSQUERYSETTINGSPAGESIZE_MSG IDS_WPCLSQUERYSETTINGSPAGESIZE+1
  144. #define IDS_WPCLSQUERYSTYLE_MSG        IDS_WPCLSQUERYSTYLE+1
  145. #define IDS_WPCLSQUERYTITLE_MSG        IDS_WPCLSQUERYTITLE+1
  146. #define IDS_WPCLSUNINITDATA_MSG        IDS_WPCLSUNINITDATA+1
  147.  
  148. /*-----------------------------------------------------------------------------
  149. *    WINDOW MESSAGES
  150. *----------------------------------------------------------------------------*/
  151. #define IDM_EDIT         (WM_USER+100)    /* "Edit" menu                     */
  152. #define IDM_EDITCOPY     (WM_USER+101)    /* "Copy" item on "Edit" menu      */
  153. #define IDM_EDITCLEAR    (WM_USER+102)    /* "Clear" item on "Edit" menu     */
  154. #define IDM_EDITCLEARALL (WM_USER+103)    /* "Clear All" item on "Edit" menu */
  155. #define IDM_SHOW_METHOD  (WM_USER+104)    /* Show method description msg     */
  156.  
  157. /*-----------------------------------------------------------------------------
  158. *    OTHER DEFINES
  159. *----------------------------------------------------------------------------*/
  160. #define MESSAGELEN          100   /* Maximum length for message box message  */
  161.  
  162. #define TITLELENGTH          30   /* Maximum length for method title         */
  163. #define METHODLENGTH        255   /* Maximum length for method description   */
  164. #define TITLESEPARATORLEN     4   /* Length of name/description separator    */
  165. #define HARD_BREAK_LENGTH     3   /* Length of the hard break string         */
  166.  
  167. /*-----------------------------------------------------------------------------
  168. *    FUNCTION DECLARATIONS
  169. *----------------------------------------------------------------------------*/
  170. MRESULT EXPENTRY MainWndProc(HWND hwnd, USHORT msg, MPARAM mp1, MPARAM mp2);
  171.  
  172. SHORT MessageBox(HWND hwndOwner, SHORT idMsg, SHORT fsStyle, BOOL fBeep);
  173.  
  174. BOOL Init(VOID);
  175.  
  176. MRESULT InitMainWindow(HWND hwnd, MPARAM mp1, MPARAM mp2);
  177.  
  178. VOID APIENTRY ExitProc(USHORT usTermCode);
  179.  
  180. MRESULT ShowMethodDescription(ULONG ulMethodId);
  181.  
  182. VOID MonitorMethodQueue(VOID);
  183.