home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / TUTORIAL / DEBUGGER / DPMLINES / DPMLINES.H < prev    next >
Text File  |  1992-04-01  |  4KB  |  65 lines

  1. /*+--------------------------------------------------------------------------+*/
  2. /*|                                                                          |*/
  3. /*| PROGRAM NAME: DPMLINES                                                   |*/
  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              |*/
  14. /*| Corporation.  This sample code is not part of any standard IBM product   |*/
  15. /*| and is provided to you solely for the purpose of assisting you in the    |*/
  16. /*| development of your applications.  The code is provided "AS IS",         |*/
  17. /*| without warranty of any kind.  IBM shall not be liable for any damages   |*/
  18. /*| arising out of your use of the sample code, even if they have been       |*/
  19. /*| advised of the 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.  
  46. /*+--------------------------------------------------------------------------+*/
  47. /*| Resource identifiers.                                                    |*/
  48. /*+--------------------------------------------------------------------------+*/
  49.  
  50. #define ID_NULL              9999
  51. #define ID_WINDOW            256
  52.  
  53. /*+--------------------------------------------------------------------------+*/
  54. /*| Macro constants.                                                         |*/
  55. /*+--------------------------------------------------------------------------+*/
  56.  
  57. #define INSTRUCTIONS "Press Mouse Button 1 to Change Foreground Color, Mouse Button 2 to Clear.  Double Click Mouse Button 1 to Change Background Color."
  58. #define START_DELTA_X -3
  59. #define START_DELTA_Y -5
  60. #define END_DELTA_X    7
  61. #define END_DELTA_Y    5
  62.  
  63. #define WM_USER_END_THREAD WM_USER+1        /* paint thread end message       */
  64. #define WM_USER_REPAINT    WM_USER+2        /* paint thread repaint message   */
  65.