home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / WKFRAME / PMLINES / PMLINES.H < prev    next >
Text File  |  1993-02-28  |  4KB  |  67 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,1993.    |*/
  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. /*+--------------------------------------------------------------------------+*/
  27. /*| Menu item identifiers.                                                   |*/
  28. /*+--------------------------------------------------------------------------+*/
  29.  
  30. #define IDM_EXIT             257
  31. #define IDM_EXITPROG         258
  32. #define IDM_RESUME           259
  33. #define IDD_HELP             260
  34. #define IDM_HELP             261
  35. #define IDM_HELPINSTRUCTIONS 262
  36. #define IDM_HELPABOUT        263
  37.  
  38. /*+--------------------------------------------------------------------------+*/
  39. /*| String identifiers.                                                      |*/
  40. /*+--------------------------------------------------------------------------+*/
  41.  
  42. #define IDS_APPNAME          0
  43. #define IDS_NOREGISTER       1
  44. #define IDS_NOSTDWINDOWS     2
  45. #define IDS_NOTHREAD         3
  46. #define IDS_SEMERROR         4
  47.  
  48. /*+--------------------------------------------------------------------------+*/
  49. /*| Resource identifiers.                                                    |*/
  50. /*+--------------------------------------------------------------------------+*/
  51.  
  52. #define ID_NULL              9999
  53. #define ID_WINDOW            256
  54.  
  55. /*+--------------------------------------------------------------------------+*/
  56. /*| Macro constants.                                                         |*/
  57. /*+--------------------------------------------------------------------------+*/
  58.  
  59. #define INSTRUCTIONS "Press Mouse Button 1 to Change Foreground Color, Mouse Button 2 to Clear.  Double Click Mouse Button 1 to Change Background Color."
  60. #define START_DELTA_X -3
  61. #define START_DELTA_Y -5
  62. #define END_DELTA_X    7
  63. #define END_DELTA_Y    5
  64.  
  65. #define WM_USER_END_THREAD WM_USER+1        /* paint thread end message       */
  66. #define WM_USER_REPAINT    WM_USER+2        /* paint thread repaint message   */
  67.