home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_code1 / ole_vbx1 / outline.h < prev    next >
C/C++ Source or Header  |  1993-12-30  |  4KB  |  111 lines

  1. /*****************************************************************************
  2. ** Copyright (C) 1993 Todd J. Abel. All Rights Reserved
  3. ******************************************************************************
  4. ** File:    OUTLINE.HPP - Main outline routines
  5. ** Author:    Todd J. Abel
  6. ** History:    10/2/93    Creation
  7. *****************************************************************************/
  8.  
  9. #ifndef OUTLINE_H
  10. #define OUTLINE_H
  11.  
  12. #ifdef __cplusplus
  13. extern "C" { 
  14. #endif
  15.  
  16. /****************************************************************************
  17. ** Outline Message Declarations
  18. ****************************************************************************/
  19. #define OL_BASE                        WM_USER + 200
  20. #define OL_ADD_NODE                    OL_BASE + 1
  21. #define OL_MOVE_FORWARD                OL_BASE + 2
  22. #define OL_MOVE_BACKWARD            OL_BASE + 3
  23. #define OL_INDENT_IN                OL_BASE + 4
  24. #define OL_INDENT_OUT                OL_BASE + 5
  25. #define OL_INDENT_NUMBERING            OL_BASE + 6
  26. #define OL_ALLOW_APPEND                OL_BASE + 7
  27. #define OL_ALLOW_DELETE                OL_BASE + 8
  28. #define OL_ALLOW_EDIT                OL_BASE + 9
  29. #define OL_ALLOW_INSERT                OL_BASE + 10
  30. #define OL_SET_FONT                    OL_BASE + 11
  31. #define OL_GET_NODE_TEXT_SIZE        OL_BASE + 12
  32. #define OL_GET_NODE_TEXT            OL_BASE + 13
  33. #define OL_GET_TEXT_STREAM            OL_BASE + 14
  34. #define OL_GET_TEXT_STREAM_SIZE        OL_BASE + 15
  35. #define OL_SET_TEXT_STREAM            OL_BASE + 16
  36. #define OL_SET_NODE_TEXT            OL_BASE + 17
  37. #define OL_TOP                        OL_BASE + 18
  38. #define OL_BOTTOM                    OL_BASE + 19
  39. #define OL_DELETE                    OL_BASE + 20
  40. #define OL_INSERT                    OL_BASE + 21
  41. #define OL_NEXTCONTROL                OL_BASE + 22
  42. #define OL_PREVCONTROL                OL_BASE + 23
  43. #define OL_GET_NUM_NODES            OL_BASE + 24
  44. #define OL_GET_FONT                    OL_BASE + 25
  45. #define OL_GET_CURRENT_NODE            OL_BASE + 26
  46. #define OL_SET_MAX_INDENT_LEVEL        OL_BASE + 27
  47. #define OL_GET_MAX_INDENT_LEVEL        OL_BASE + 28
  48. #define OL_FLUSH                    OL_BASE + 29
  49. #define OL_SETREDRAW                OL_BASE + 30
  50. #define OL_REDRAW                    OL_BASE + 31
  51. #define OL_GETREDRAW                OL_BASE + 32
  52. #define OL_CANUNDO                    OL_BASE + 33
  53. #define OL_UNDO                        OL_BASE + 34
  54. #define OL_GET_INDENT_LEVEL            OL_BASE + 35
  55. #define OL_GET_NUMBERING_STYLE        OL_BASE + 36
  56.  
  57. #define OL_LAST_MESSAGE                OL_BASE + 36
  58.  
  59. /****************************************************************************
  60. ** Outline Notification Message Declarations
  61. ****************************************************************************/
  62. #define OLN_ADDNODE                    1        // Notifications
  63. #define OLN_CHANGE                    2
  64. #define OLN_DELNODE                    3
  65. #define OLN_INDENT                    4
  66. #define OLN_INSNODE                    5
  67. #define OLN_KILLFOCUS                6
  68. #define OLN_SELCHANGE                7
  69. #define OLN_SETFOCUS                8 
  70. #define OLN_VSCROLL                    9
  71. #define OLN_LBUTTONCLK                10
  72. #define OLN_LBUTTONDBLCLK            11
  73. #define OLN_RBUTTONCLK                12
  74. #define OLN_RBUTTONDBLCLK            13
  75. #define OLN_MBUTTONCLK                14
  76. #define OLN_MBUTTONDBLCLK            15
  77.  
  78. /****************************************************************************
  79. ** Outline Style Declarations
  80. ****************************************************************************/
  81. #define OLS_ALLOW_APPEND    0x0001
  82. #define OLS_ALLOW_DELETE    0x0002
  83. #define OLS_ALLOW_EDIT        0x0004
  84. #define OLS_ALLOW_INSERT    0x0008
  85. #define OLS_NONUMBERING        0x0010
  86. #define OLS_NUMNUMBERING    0x0020
  87. #define OLS_REDRAW            0x0040
  88.  
  89. /****************************************************************************
  90. ** Constant Declarations
  91. ****************************************************************************/
  92. #define OL_NONODE            -1
  93. #define OL_NOINDENT            -1
  94. #define OL_ERROR            -1
  95.  
  96. #define OL_NUM_NONE            0x0000        // Numbering type constants
  97. #define OL_NUM_NUMERIC        0x0001
  98. #define OL_MAX_INDENT_LEVEL    0x0008        // Maximum number of indent levels                  
  99.  
  100. /****************************************************************************
  101. ** Function Declarations
  102. ****************************************************************************/
  103. HWND __export CALLBACK OlCreateOutline(DWORD dwStyle, int X, int Y, int iWidth,
  104.                                    int iHeight, HWND hParent, int nID);
  105. #ifdef __cplusplus                           
  106. } /* End Extern "C" */
  107. #endif
  108.  
  109. #endif
  110.  
  111.