home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / WKFRAME / UILINES / PMLINES.H < prev    next >
Text File  |  1993-01-24  |  5KB  |  89 lines

  1. /*+--------------------------------------------------------------------------+*/
  2. /*|                                                                          |*/
  3. /*| PROGRAM NAME: PMLINES                                                    |*/
  4. /*| -------------                                                            |*/
  5. /*|  A Simple OS/2 Presentation Manager Graphics Demonstration Program       |*/
  6. /*|                                                                          |*/
  7. /*| COPYRIGHT:                                                               |*/
  8. /*| ----------                                                               |*/
  9. /*|  Copyright (C) International Business Machines Corp., 1991,1992.         |*/
  10. /*|                                                                          |*/
  11. /*| DISCLAIMER OF WARRANTIES:                                                |*/
  12. /*| -------------------------                                                |*/
  13. /*|  The following [enclosed] code is sample code created by IBM Corporation.|*/
  14. /*|  This sample code is not part of any standard IBM product and is provided|*/
  15. /*|  to you solely for the purpose of assisting you in the development of    |*/
  16. /*|  your applications.  The code is provided "AS IS", without warranty of   |*/
  17. /*|  any kind.  IBM shall not be liable for any damages arising out of your  |*/
  18. /*|  use of the sample code, even if they have been advised of the           |*/
  19. /*|  possibility of such damages.                                            |*/
  20. /*|                                                                          |*/
  21. /*| REVISION LEVEL: 1.0                                                      |*/
  22. /*| ---------------                                                          |*/
  23. /*|                                                                          |*/
  24. /*+--------------------------------------------------------------------------+*/
  25. /************************************************************* */
  26. /* This version is a port of the PMLINES program. The original */
  27. /* PMLINES program was coded in C and PM. This port has been   */
  28. /* coded in C++. The PM interface is the User Interface Library*/
  29. /* that comes with the compiler.                               */
  30. /*                                                             */
  31. /* The following Library features are demonstrated by this     */
  32. /* program.                                                    */
  33. /*  1. Window Creation.                                        */
  34. /*  2. Event Handling                                          */
  35. /*  3. Simple multitasking                                     */
  36. /*  4. Use of GPI or native PM API with User Interface Library */
  37. /*     Objects                                                 */
  38. /*                                                             */
  39. /*                                                             */
  40. /* Change History:                                             */
  41. /* Rel Programmer        Stamp Date     Description            */
  42. /* --- ----------------- ----- -------- -----------------------*/
  43. /* 1.0 Noel Sales        njCs  16/12/92 Creation               */
  44. /************************************************************* */
  45.  
  46. /*+-----------------------------------------------------------+*/
  47. /*| Menu item identifiers.                                    |*/
  48. /*+-----------------------------------------------------------+*/
  49.  
  50. #define IDM_EXIT             257
  51. #define IDM_EXITPROG         258
  52. #define IDM_RESUME           259
  53. #define IDD_HELP             260
  54. #define IDM_HELP             261
  55. #define IDM_HELPINSTRUCTIONS 262
  56. #define IDM_HELPABOUT        263
  57.  
  58. /*+-----------------------------------------------------------+*/
  59. /*| String identifiers.                                       |*/
  60. /*+-----------------------------------------------------------+*/
  61.  
  62. #define IDS_APPNAME          0
  63. #define IDS_NOREGISTER       1
  64. #define IDS_NOSTDWINDOWS     2
  65. #define IDS_NOTHREAD         3
  66. #define IDS_SEMERROR         4
  67.  
  68. /*+-----------------------------------------------------------+*/
  69. /*| Resource identifiers.                                     |*/
  70. /*+-----------------------------------------------------------+*/
  71.  
  72. #define ID_NULL              9999
  73. #define ID_WINDOW            200
  74. #define ID_CLIENT            ID_WINDOW+1
  75.  
  76. /*+-----------------------------------------------------------+*/
  77. /*| Macro constants.                                          |*/
  78. /*+-----------------------------------------------------------+*/
  79.  
  80. #define INSTRUCTIONS "Press Mouse Button 1 to Change Foreground Color, Mouse Button 2 to Clear.  Double Click Mouse Button 1 to Change Background Color."
  81. #define ABOUT "An OS/2 PM Graphics Demonstation:\nA version of PMLINES written in C++ using the User Interface class library."
  82. #define START_DELTA_X -3
  83. #define START_DELTA_Y -5
  84. #define END_DELTA_X    7
  85. #define END_DELTA_Y    5
  86.  
  87. #define WM_USER_END_THREAD WM_USER+1  /* paint thread end msg  */
  88. #define WM_USER_REPAINT    WM_USER+2  /* paint thread repaint  */
  89.