home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / windows / basic / emed15 / samples / owl / include / emedit.h < prev   
Encoding:
C/C++ Source or Header  |  1994-05-04  |  22.0 KB  |  664 lines

  1. //--------------------------------------------------------
  2. // EMEDIT.H generated from EMEDIT.VBX by
  3. // VbxGen 1.0 - Borland International
  4. //--------------------------------------------------------
  5.  
  6. #ifdef __OWL_OWLDEFS_H
  7.   #include <owl\vbxctl.h>
  8. #endif
  9.  
  10. //--------------------------------------------------------
  11. // Editor (VB1)
  12. //--------------------------------------------------------
  13.  
  14. // properties
  15. #define Prop_Editor_CtlName 0
  16. #define Prop_Editor_Index 1
  17. #define Prop_Editor_hWnd 2
  18. #define Prop_Editor_BackColor 3
  19. #define Prop_Editor_ForeColor 4
  20. #define Prop_Editor_Left 5
  21. #define Prop_Editor_Top 6
  22. #define Prop_Editor_Width 7
  23. #define Prop_Editor_Height 8
  24. #define Prop_Editor_Enabled 9
  25. #define Prop_Editor_Visible 10
  26. #define Prop_Editor_MousePointer 11
  27. #define Prop_Editor_FontName 12
  28. #define Prop_Editor_FontBold 13
  29. #define Prop_Editor_FontItalic 14
  30. #define Prop_Editor_FontStrikethru 15
  31. #define Prop_Editor_FontUnderline 16
  32. #define Prop_Editor_FontSize 17
  33. #define Prop_Editor_TabIndex 18
  34. #define Prop_Editor_Parent 19
  35. #define Prop_Editor_DragMode 20
  36. #define Prop_Editor_DragIcon 21
  37. #define Prop_Editor_TabStop 22
  38. #define Prop_Editor_Tag 23
  39. #define Prop_Editor_Text 24
  40. #define Prop_Editor_BorderStyle 25
  41. #define Prop_Editor_Unused1 26
  42. #define Prop_Editor_Unused2 27
  43. #define Prop_Editor_Unused3 28
  44. #define Prop_Editor_Unused4 29
  45. #define Prop_Editor_Unused5 30
  46. #define Prop_Editor_Unused6 31
  47. #define Prop_Editor_Unused7 32
  48. #define Prop_Editor_Unused8 33
  49. #define Prop_Editor_Unused9 34
  50. #define Prop_Editor_ScrollBars 35
  51. #define Prop_Editor_FileOpen 36
  52. #define Prop_Editor_FileSave 37
  53. #define Prop_Editor_SelDefaultType 38
  54. #define Prop_Editor_InsertMode 39
  55. #define Prop_Editor_IsDirty 40
  56. #define Prop_Editor_Action 41
  57. #define Prop_Editor_Count 42
  58. #define Prop_Editor_TopY 43
  59. #define Prop_Editor_TextIndex 44
  60. #define Prop_Editor_CaretX 45
  61. #define Prop_Editor_CaretY 46
  62. #define Prop_Editor_SelMark 47
  63. #define Prop_Editor_SelStartX 48
  64. #define Prop_Editor_SelStartY 49
  65. #define Prop_Editor_SelEndX 50
  66. #define Prop_Editor_SelEndY 51
  67. #define Prop_Editor_SelText 52
  68. #define Prop_Editor_Redraw 53
  69. #define Prop_Editor_LeftHi 54
  70. #define Prop_Editor_RightHi 55
  71. #define Prop_Editor_Password 56
  72. #define Prop_Editor_ReadOnly 57
  73. #define Prop_Editor_TopMargin 58
  74. #define Prop_Editor_BottomMargin 59
  75. #define Prop_Editor_LeftMargin 60
  76. #define Prop_Editor_RightMargin 61
  77. #define Prop_Editor_SelForeColor 62
  78. #define Prop_Editor_SelBackColor 63
  79. #define Prop_Editor_TabDefaultWidth 64
  80. #define Prop_Editor_TabCount 65
  81. #define Prop_Editor_TabMark 66
  82. #define Prop_Editor_WrapY 67
  83. #define Prop_Editor_WrapWholeWords 68
  84. #define Prop_Editor_hFont 69
  85. #define Prop_Editor_CaretWidth 70
  86. #define Prop_Editor_CaretHeight 71
  87. #define Prop_Editor_LinesPerWindow 72
  88. #define Prop_Editor_FullLinesPerWindow 73
  89. #define Prop_Editor_CanUndo 74
  90. #define Prop_Editor_CanRedo 75
  91. #define Prop_Editor_UndoLimit 76
  92. #define Prop_Editor_SearchTarget 77
  93. #define Prop_Editor_SearchReplacement 78
  94. #define Prop_Editor_SearchOrigin 79
  95. #define Prop_Editor_SearchTo 80
  96. #define Prop_Editor_SearchCaseSensitive 81
  97. #define Prop_Editor_SearchWholeWordsOnly 82
  98. #define Prop_Editor_SearchResult 83
  99. #define Prop_Editor_EndOfCustomProperties 84
  100.  
  101. // events
  102. #define Event_Editor_Click 0
  103. #define Event_Editor_DblClick 1
  104. #define Event_Editor_DragDrop 2
  105. #define Event_Editor_DragOver 3
  106. #define Event_Editor_GotFocus 4
  107. #define Event_Editor_KeyDown 5
  108. #define Event_Editor_KeyPress 6
  109. #define Event_Editor_KeyUp 7
  110. #define Event_Editor_LostFocus 8
  111. #define Event_Editor_MouseDown 9
  112. #define Event_Editor_MouseMove 10
  113. #define Event_Editor_MouseUp 11
  114. #define Event_Editor_FindWordBreak 12
  115. #define Event_Editor_SelChange 13
  116. #define Event_Editor_TopYChange 14
  117. #define Event_Editor_CaretChange 15
  118. #define Event_Editor_Change 16
  119. #define Event_Editor_SearchReplaceConfirm 17
  120. #define Event_Editor_BeginMessage 18
  121. #define Event_Editor_ProcessMessage 19
  122. #define Event_Editor_EndMessage 20
  123.  
  124. // default form data
  125. //
  126. // Some VBX controls do not operate correctly when created without
  127. // a form file.  This occurs when a program creates a control
  128. // dynamically rather than as part of a dialog resource.  If this
  129. // control exhibits problems in this mode, try creating it with the
  130. // following form data:
  131. //
  132. // For OWL programs:
  133. //
  134. //   TVbxEditor* c = new TVbxEditor(..., sizeof(EditorData), EditorData);
  135. //
  136. // For C/C++ programs:
  137. //
  138. //   HFORMFILE file = VBXCreateFormFile(sizeof(EditorData), EditorData);
  139. //   HCTL c = VBXCreate(..., file);
  140. //   VBXDeleteFormFile(file);
  141. //
  142. // Note that the VBXGEN_DATA or Editor_DATA symbol must be
  143. // defined in order to use the default form data.
  144. //
  145. extern BYTE EditorData[151L];
  146. #if defined(VBXGEN_DATA) || defined(Editor_DATA)
  147.   BYTE EditorData[151L]={
  148.     0x23,0x03,0x01,0x00,0x00,0x03,0xff,0xff,
  149.     0xff,0x00,0x04,0x00,0x00,0x00,0x00,0x05,
  150.     0x09,0xff,0xff,0x0a,0xff,0xff,0x0b,0x00,
  151.     0x0c,0x40,0x01,0x07,0x00,0x00,0x00,0x00,
  152.     0x00,0xbc,0x02,0x00,0x00,0x00,0x00,0x01,
  153.     0x02,0x02,0x22,0x53,0x79,0x73,0x74,0x65,
  154.     0x6d,0x00,0x41,0x50,0x00,0x2e,0x4f,0x50,
  155.     0x00,0x2e,0x4f,0x6f,0x41,0x17,0x27,0x73,
  156.     0x19,0x7f,0x41,0x50,0x00,0x2e,0x4f,0x64,
  157.     0x17,0x00,0x58,0x12,0x00,0x00,0x14,0x00,
  158.     0x16,0x01,0x00,0x17,0x00,0x19,0x01,0x24,
  159.     0x00,0x26,0x01,0x27,0xff,0xff,0x38,0x00,
  160.     0x00,0x00,0x00,0x39,0x00,0x00,0x3a,0x00,
  161.     0x00,0x3b,0x00,0x00,0x3c,0x00,0x00,0x3d,
  162.     0x00,0x00,0x3e,0xff,0xff,0xff,0x00,0x3f,
  163.     0x00,0x00,0x00,0x00,0x40,0xff,0xff,0x46,
  164.     0xff,0xff,0x47,0xff,0xff,0x4c,0xff,0x00,
  165.     0x4d,0x00,0x4e,0x00,0x4f,0x00,0x50,0x01,
  166.     0x51,0x00,0x00,0x52,0x00,0x00,0xff,
  167.   };
  168. #endif
  169.  
  170. #ifdef __OWL_VBXCTL_H
  171.  
  172. // OWL class
  173. class TVbxEditor : public TVbxControl {
  174.   public:
  175.  
  176.     // constructors
  177.     TVbxEditor(TWindow* parent, int id, LPCSTR title,
  178.         int x, int y, int w, int h,
  179.         long initLen=0, void far* initData=0, TModule* module=0) :
  180.       TVbxControl(parent, id, "EMEDIT.VBX", "Editor",
  181.           title, x, y, w, h, initLen, initData, module) {}
  182.  
  183.     TVbxEditor(TWindow* parent, int resourceId, TModule* module=0) :
  184.         TVbxControl(parent, resourceId, module) {}
  185.  
  186. #if 0
  187.     // event handlers
  188.     void EvClick(VBXEVENT FAR*)
  189.     {
  190.       // no arguments
  191.     }
  192.  
  193.     void EvDblClick(VBXEVENT FAR*)
  194.     {
  195.       // no arguments
  196.     }
  197.  
  198.     void EvDragDrop(VBXEVENT FAR*)
  199.     {
  200.       // Source As Control,X As Integer,Y As Integer
  201.     }
  202.  
  203.     void EvDragOver(VBXEVENT FAR*)
  204.     {
  205.       // Source As Control,X As Integer,Y As Integer,State As Integer
  206.     }
  207.  
  208.     void EvGotFocus(VBXEVENT FAR*)
  209.     {
  210.       // no arguments
  211.     }
  212.  
  213.     void EvKeyDown(VBXEVENT FAR*)
  214.     {
  215.       // KeyCode As Integer,Shift As Integer
  216.     }
  217.  
  218.     void EvKeyPress(VBXEVENT FAR*)
  219.     {
  220.       // KeyAscii As Integer
  221.     }
  222.  
  223.     void EvKeyUp(VBXEVENT FAR*)
  224.     {
  225.       // KeyCode As Integer,Shift As Integer
  226.     }
  227.  
  228.     void EvLostFocus(VBXEVENT FAR*)
  229.     {
  230.       // no arguments
  231.     }
  232.  
  233.     void EvMouseDown(VBXEVENT FAR*)
  234.     {
  235.       // Button As Integer,Shift As Integer,X As Integer,Y As Integer
  236.     }
  237.  
  238.     void EvMouseMove(VBXEVENT FAR*)
  239.     {
  240.       // Button As Integer,Shift As Integer,X As Integer,Y As Integer
  241.     }
  242.  
  243.     void EvMouseUp(VBXEVENT FAR*)
  244.     {
  245.       // Button As Integer,Shift As Integer,X As Integer,Y As Integer
  246.     }
  247.  
  248.     void EvFindWordBreak(VBXEVENT FAR*)
  249.     {
  250.       // CurrentY As Long, CurrentX as Long, NextY As Long, NextX as Long
  251.     }
  252.  
  253.     void EvSelChange(VBXEVENT FAR*)
  254.     {
  255.       // OldSelStartX As Long, OldSelStartY as Long, OldSelEndX As Long, OldSelEndY as Long, OldSelMark as Integer
  256.     }
  257.  
  258.     void EvTopYChange(VBXEVENT FAR*)
  259.     {
  260.       // OldTopY As Long
  261.     }
  262.  
  263.     void EvCaretChange(VBXEVENT FAR*)
  264.     {
  265.       // OldCaretX As Long, OldCaretY as Long
  266.     }
  267.  
  268.     void EvChange(VBXEVENT FAR*)
  269.     {
  270.       // no arguments
  271.     }
  272.  
  273.     void EvSearchReplaceConfirm(VBXEVENT FAR*)
  274.     {
  275.       // Confirmation as Integer
  276.     }
  277.  
  278.     void EvBeginMessage(VBXEVENT FAR*)
  279.     {
  280.       // HControl As Long, HWindow As Integer, Message As Integer, WParam As Integer, LParam As Long, fProcessMessage As Integer
  281.     }
  282.  
  283.     void EvProcessMessage(VBXEVENT FAR*)
  284.     {
  285.       // HControl As Long, HWindow As Integer, Message As Integer, WParam As Integer, LParam As Long, MessageResult As Long
  286.     }
  287.  
  288.     void EvEndMessage(VBXEVENT FAR*)
  289.     {
  290.       // HControl As Long, HWindow As Integer, Message As Integer, WParam As Integer, LParam As Long
  291.     }
  292.  
  293. #endif
  294.  
  295.     // enumerations
  296.     enum { // values for property MousePointer
  297.       MousePointer_0_Default,
  298.       MousePointer_1_Arrow,
  299.       MousePointer_2_Cross,
  300.       MousePointer_3_IBeam,
  301.       MousePointer_4_Icon,
  302.       MousePointer_5_Size,
  303.       MousePointer_6_Size_NE_SW,
  304.       MousePointer_7_Size_NS,
  305.       MousePointer_8_Size_NW_SE,
  306.       MousePointer_9_Size_WE,
  307.       MousePointer_10_Up_Arrow,
  308.       MousePointer_11_Hourglass,
  309.       MousePointer_12_No_Drop,
  310.     };
  311.  
  312.     enum { // values for property DragMode
  313.       DragMode_0_Manual,
  314.       DragMode_1_Automatic,
  315.     };
  316.  
  317.     enum { // values for property BorderStyle
  318.       BorderStyle_0_None,
  319.       BorderStyle_1_Fixed_Single,
  320.     };
  321.  
  322.     enum { // values for property ScrollBars
  323.       ScrollBars_0_None,
  324.       ScrollBars_1_Horizontal,
  325.       ScrollBars_2_Vertical,
  326.       ScrollBars_3_Both,
  327.     };
  328.  
  329.     enum { // values for property SelDefaultType
  330.       SelDefaultType_0_None,
  331.       SelDefaultType_1_Stream,
  332.       SelDefaultType_2_Line,
  333.       SelDefaultType_3_Column,
  334.     };
  335.  
  336.     enum { // values for property Action
  337.       Action_0_No_Action,
  338.       Action_1_Copy,
  339.       Action_2_Paste,
  340.       Action_3_Cut,
  341.       Action_4_Clear,
  342.       Action_5_Wrap,
  343.       Action_6_Undo,
  344.       Action_7_Redo,
  345.       Action_8_Empty_Undo,
  346.       Action_9_Search,
  347.       Action_10_Replace,
  348.       Action_11_Search_Again,
  349.     };
  350.  
  351.     enum { // values for property SelMark
  352.       SelMark_0_None,
  353.       SelMark_1_Stream,
  354.       SelMark_2_Line,
  355.       SelMark_3_Column,
  356.     };
  357.  
  358.     enum { // values for property SearchOrigin
  359.       SearchOrigin_0_From_Cursor,
  360.       SearchOrigin_1_Entire_Scope,
  361.     };
  362.  
  363.     enum { // values for property SearchTo
  364.       SearchTo_0_Top_of_text,
  365.       SearchTo_1_Bottom_of_text,
  366.     };
  367.  
  368.     enum { // values for property SearchResult
  369.       SearchResult_0_Failure,
  370.       SearchResult_1_Success,
  371.     };
  372.  
  373.  
  374.     // properties
  375.     BOOL GetPropCtlName(string& v) {return GetProp(0,v);}
  376.     BOOL SetPropCtlName(string& v) {return SetProp(0,v);}
  377.  
  378.     BOOL GetPropIndex(int& v) {return GetProp(1,v);}
  379.     BOOL SetPropIndex(int v) {return SetProp(1,v);}
  380.  
  381.     BOOL GetProphWnd(int& v) {return GetProp(2,v);}
  382.     BOOL SetProphWnd(int v) {return SetProp(2,v);}
  383.  
  384.     BOOL GetPropBackColor(COLORREF& v) {return GetProp(3,v);}
  385.     BOOL SetPropBackColor(COLORREF v) {return SetProp(3,v);}
  386.  
  387.     BOOL GetPropForeColor(COLORREF& v) {return GetProp(4,v);}
  388.     BOOL SetPropForeColor(COLORREF v) {return SetProp(4,v);}
  389.  
  390.     BOOL GetPropLeft(long& v) {return GetProp(5,v);}
  391.     BOOL SetPropLeft(long v) {return SetProp(5,v);}
  392.  
  393.     BOOL GetPropTop(long& v) {return GetProp(6,v);}
  394.     BOOL SetPropTop(long v) {return SetProp(6,v);}
  395.  
  396.     BOOL GetPropWidth(long& v) {return GetProp(7,v);}
  397.     BOOL SetPropWidth(long v) {return SetProp(7,v);}
  398.  
  399.     BOOL GetPropHeight(long& v) {return GetProp(8,v);}
  400.     BOOL SetPropHeight(long v) {return SetProp(8,v);}
  401.  
  402.     BOOL GetPropEnabled(BOOL& v) {return GetProp(9,v);}
  403.     BOOL SetPropEnabled(BOOL v) {return SetProp(9,v);}
  404.  
  405.     BOOL GetPropVisible(BOOL& v) {return GetProp(10,v);}
  406.     BOOL SetPropVisible(BOOL v) {return SetProp(10,v);}
  407.  
  408.     BOOL GetPropMousePointer(ENUM& v) {return GetProp(11,v);}
  409.     BOOL SetPropMousePointer(ENUM v) {return SetProp(11,v);}
  410.  
  411.     BOOL GetPropFontName(string& v) {return GetProp(12,v);}
  412.     BOOL SetPropFontName(string& v) {return SetProp(12,v);}
  413.  
  414.     BOOL GetPropFontBold(BOOL& v) {return GetProp(13,v);}
  415.     BOOL SetPropFontBold(BOOL v) {return SetProp(13,v);}
  416.  
  417.     BOOL GetPropFontItalic(BOOL& v) {return GetProp(14,v);}
  418.     BOOL SetPropFontItalic(BOOL v) {return SetProp(14,v);}
  419.  
  420.     BOOL GetPropFontStrikethru(BOOL& v) {return GetProp(15,v);}
  421.     BOOL SetPropFontStrikethru(BOOL v) {return SetProp(15,v);}
  422.  
  423.     BOOL GetPropFontUnderline(BOOL& v) {return GetProp(16,v);}
  424.     BOOL SetPropFontUnderline(BOOL v) {return SetProp(16,v);}
  425.  
  426.     BOOL GetPropFontSize(float& v) {return GetProp(17,v);}
  427.     BOOL SetPropFontSize(float v) {return SetProp(17,v);}
  428.  
  429.     BOOL GetPropTabIndex(int& v) {return GetProp(18,v);}
  430.     BOOL SetPropTabIndex(int v) {return SetProp(18,v);}
  431.  
  432.     BOOL GetPropParent(int& v) {return GetProp(19,v);}
  433.     BOOL SetPropParent(int v) {return SetProp(19,v);}
  434.  
  435.     BOOL GetPropDragMode(ENUM& v) {return GetProp(20,v);}
  436.     BOOL SetPropDragMode(ENUM v) {return SetProp(20,v);}
  437.  
  438.     BOOL GetPropDragIcon(HPIC& v) {return GetProp(21,v);}
  439.     BOOL SetPropDragIcon(HPIC v) {return SetProp(21,v);}
  440.  
  441.     BOOL GetPropTabStop(BOOL& v) {return GetProp(22,v);}
  442.     BOOL SetPropTabStop(BOOL v) {return SetProp(22,v);}
  443.  
  444.     BOOL GetPropTag(string& v) {return GetProp(23,v);}
  445.     BOOL SetPropTag(string& v) {return SetProp(23,v);}
  446.  
  447.     BOOL GetPropText(string& v) {return GetProp(24,v);}
  448.     BOOL SetPropText(string& v) {return SetProp(24,v);}
  449.  
  450.     BOOL GetPropBorderStyle(ENUM& v) {return GetProp(25,v);}
  451.     BOOL SetPropBorderStyle(ENUM v) {return SetProp(25,v);}
  452.  
  453.     BOOL GetPropUnused1(int& v) {return GetProp(26,v);}
  454.     BOOL SetPropUnused1(int v) {return SetProp(26,v);}
  455.  
  456.     BOOL GetPropUnused2(int& v) {return GetProp(27,v);}
  457.     BOOL SetPropUnused2(int v) {return SetProp(27,v);}
  458.  
  459.     BOOL GetPropUnused3(int& v) {return GetProp(28,v);}
  460.     BOOL SetPropUnused3(int v) {return SetProp(28,v);}
  461.  
  462.     BOOL GetPropUnused4(int& v) {return GetProp(29,v);}
  463.     BOOL SetPropUnused4(int v) {return SetProp(29,v);}
  464.  
  465.     BOOL GetPropUnused5(int& v) {return GetProp(30,v);}
  466.     BOOL SetPropUnused5(int v) {return SetProp(30,v);}
  467.  
  468.     BOOL GetPropUnused6(int& v) {return GetProp(31,v);}
  469.     BOOL SetPropUnused6(int v) {return SetProp(31,v);}
  470.  
  471.     BOOL GetPropUnused7(int& v) {return GetProp(32,v);}
  472.     BOOL SetPropUnused7(int v) {return SetProp(32,v);}
  473.  
  474.     BOOL GetPropUnused8(int& v) {return GetProp(33,v);}
  475.     BOOL SetPropUnused8(int v) {return SetProp(33,v);}
  476.  
  477.     BOOL GetPropUnused9(int& v) {return GetProp(34,v);}
  478.     BOOL SetPropUnused9(int v) {return SetProp(34,v);}
  479.  
  480.     BOOL GetPropScrollBars(ENUM& v) {return GetProp(35,v);}
  481.     BOOL SetPropScrollBars(ENUM v) {return SetProp(35,v);}
  482.  
  483.     BOOL GetPropFileOpen(string& v) {return GetProp(36,v);}
  484.     BOOL SetPropFileOpen(string& v) {return SetProp(36,v);}
  485.  
  486.     BOOL GetPropFileSave(string& v) {return GetProp(37,v);}
  487.     BOOL SetPropFileSave(string& v) {return SetProp(37,v);}
  488.  
  489.     BOOL GetPropSelDefaultType(ENUM& v) {return GetProp(38,v);}
  490.     BOOL SetPropSelDefaultType(ENUM v) {return SetProp(38,v);}
  491.  
  492.     BOOL GetPropInsertMode(BOOL& v) {return GetProp(39,v);}
  493.     BOOL SetPropInsertMode(BOOL v) {return SetProp(39,v);}
  494.  
  495.     BOOL GetPropIsDirty(BOOL& v) {return GetProp(40,v);}
  496.     BOOL SetPropIsDirty(BOOL v) {return SetProp(40,v);}
  497.  
  498.     BOOL GetPropAction(ENUM& v) {return GetProp(41,v);}
  499.     BOOL SetPropAction(ENUM v) {return SetProp(41,v);}
  500.  
  501.     BOOL GetPropCount(long& v) {return GetProp(42,v);}
  502.     BOOL SetPropCount(long v) {return SetProp(42,v);}
  503.  
  504.     BOOL GetPropTopY(long& v) {return GetProp(43,v);}
  505.     BOOL SetPropTopY(long v) {return SetProp(43,v);}
  506.  
  507.     BOOL GetPropTextIndex(long& v) {return GetProp(44,v);}
  508.     BOOL SetPropTextIndex(long v) {return SetProp(44,v);}
  509.  
  510.     BOOL GetPropCaretX(long& v) {return GetProp(45,v);}
  511.     BOOL SetPropCaretX(long v) {return SetProp(45,v);}
  512.  
  513.     BOOL GetPropCaretY(long& v) {return GetProp(46,v);}
  514.     BOOL SetPropCaretY(long v) {return SetProp(46,v);}
  515.  
  516.     BOOL GetPropSelMark(ENUM& v) {return GetProp(47,v);}
  517.     BOOL SetPropSelMark(ENUM v) {return SetProp(47,v);}
  518.  
  519.     BOOL GetPropSelStartX(long& v) {return GetProp(48,v);}
  520.     BOOL SetPropSelStartX(long v) {return SetProp(48,v);}
  521.  
  522.     BOOL GetPropSelStartY(long& v) {return GetProp(49,v);}
  523.     BOOL SetPropSelStartY(long v) {return SetProp(49,v);}
  524.  
  525.     BOOL GetPropSelEndX(long& v) {return GetProp(50,v);}
  526.     BOOL SetPropSelEndX(long v) {return SetProp(50,v);}
  527.  
  528.     BOOL GetPropSelEndY(long& v) {return GetProp(51,v);}
  529.     BOOL SetPropSelEndY(long v) {return SetProp(51,v);}
  530.  
  531.     BOOL GetPropSelText(string& v) {return GetProp(52,v);}
  532.     BOOL SetPropSelText(string& v) {return SetProp(52,v);}
  533.  
  534.     BOOL GetPropRedraw(BOOL& v) {return GetProp(53,v);}
  535.     BOOL SetPropRedraw(BOOL v) {return SetProp(53,v);}
  536.  
  537.     BOOL GetPropLeftHi(long& v) {return GetProp(54,v);}
  538.     BOOL SetPropLeftHi(long v) {return SetProp(54,v);}
  539.  
  540.     BOOL GetPropRightHi(long& v) {return GetProp(55,v);}
  541.     BOOL SetPropRightHi(long v) {return SetProp(55,v);}
  542.  
  543.     BOOL GetPropPassword(long& v) {return GetProp(56,v);}
  544.     BOOL SetPropPassword(long v) {return SetProp(56,v);}
  545.  
  546.     BOOL GetPropReadOnly(BOOL& v) {return GetProp(57,v);}
  547.     BOOL SetPropReadOnly(BOOL v) {return SetProp(57,v);}
  548.  
  549.     BOOL GetPropTopMargin(int& v) {return GetProp(58,v);}
  550.     BOOL SetPropTopMargin(int v) {return SetProp(58,v);}
  551.  
  552.     BOOL GetPropBottomMargin(int& v) {return GetProp(59,v);}
  553.     BOOL SetPropBottomMargin(int v) {return SetProp(59,v);}
  554.  
  555.     BOOL GetPropLeftMargin(int& v) {return GetProp(60,v);}
  556.     BOOL SetPropLeftMargin(int v) {return SetProp(60,v);}
  557.  
  558.     BOOL GetPropRightMargin(int& v) {return GetProp(61,v);}
  559.     BOOL SetPropRightMargin(int v) {return SetProp(61,v);}
  560.  
  561.     BOOL GetPropSelForeColor(COLORREF& v) {return GetProp(62,v);}
  562.     BOOL SetPropSelForeColor(COLORREF v) {return SetProp(62,v);}
  563.  
  564.     BOOL GetPropSelBackColor(COLORREF& v) {return GetProp(63,v);}
  565.     BOOL SetPropSelBackColor(COLORREF v) {return SetProp(63,v);}
  566.  
  567.     BOOL GetPropTabDefaultWidth(int& v) {return GetProp(64,v);}
  568.     BOOL SetPropTabDefaultWidth(int v) {return SetProp(64,v);}
  569.  
  570.     BOOL GetPropTabCount(int& v) {return GetProp(65,v);}
  571.     BOOL SetPropTabCount(int v) {return SetProp(65,v);}
  572.  
  573.     BOOL GetPropTabMark(long& v, int i) {return GetProp(66,v,i);}
  574.     BOOL SetPropTabMark(long v, int i) {return SetProp(66,v,i);}
  575.  
  576.     BOOL GetPropWrapY(int& v) {return GetProp(67,v);}
  577.     BOOL SetPropWrapY(int v) {return SetProp(67,v);}
  578.  
  579.     BOOL GetPropWrapWholeWords(BOOL& v) {return GetProp(68,v);}
  580.     BOOL SetPropWrapWholeWords(BOOL v) {return SetProp(68,v);}
  581.  
  582.     BOOL GetProphFont(int& v) {return GetProp(69,v);}
  583.     BOOL SetProphFont(int v) {return SetProp(69,v);}
  584.  
  585.     BOOL GetPropCaretWidth(int& v) {return GetProp(70,v);}
  586.     BOOL SetPropCaretWidth(int v) {return SetProp(70,v);}
  587.  
  588.     BOOL GetPropCaretHeight(int& v) {return GetProp(71,v);}
  589.     BOOL SetPropCaretHeight(int v) {return SetProp(71,v);}
  590.  
  591.     BOOL GetPropLinesPerWindow(int& v) {return GetProp(72,v);}
  592.     BOOL SetPropLinesPerWindow(int v) {return SetProp(72,v);}
  593.  
  594.     BOOL GetPropFullLinesPerWindow(int& v) {return GetProp(73,v);}
  595.     BOOL SetPropFullLinesPerWindow(int v) {return SetProp(73,v);}
  596.  
  597.     BOOL GetPropCanUndo(BOOL& v) {return GetProp(74,v);}
  598.     BOOL SetPropCanUndo(BOOL v) {return SetProp(74,v);}
  599.  
  600.     BOOL GetPropCanRedo(BOOL& v) {return GetProp(75,v);}
  601.     BOOL SetPropCanRedo(BOOL v) {return SetProp(75,v);}
  602.  
  603.     BOOL GetPropUndoLimit(int& v) {return GetProp(76,v);}
  604.     BOOL SetPropUndoLimit(int v) {return SetProp(76,v);}
  605.  
  606.     BOOL GetPropSearchTarget(string& v) {return GetProp(77,v);}
  607.     BOOL SetPropSearchTarget(string& v) {return SetProp(77,v);}
  608.  
  609.     BOOL GetPropSearchReplacement(string& v) {return GetProp(78,v);}
  610.     BOOL SetPropSearchReplacement(string& v) {return SetProp(78,v);}
  611.  
  612.     BOOL GetPropSearchOrigin(ENUM& v) {return GetProp(79,v);}
  613.     BOOL SetPropSearchOrigin(ENUM v) {return SetProp(79,v);}
  614.  
  615.     BOOL GetPropSearchTo(ENUM& v) {return GetProp(80,v);}
  616.     BOOL SetPropSearchTo(ENUM v) {return SetProp(80,v);}
  617.  
  618.     BOOL GetPropSearchCaseSensitive(BOOL& v) {return GetProp(81,v);}
  619.     BOOL SetPropSearchCaseSensitive(BOOL v) {return SetProp(81,v);}
  620.  
  621.     BOOL GetPropSearchWholeWordsOnly(BOOL& v) {return GetProp(82,v);}
  622.     BOOL SetPropSearchWholeWordsOnly(BOOL v) {return SetProp(82,v);}
  623.  
  624.     BOOL GetPropSearchResult(ENUM& v) {return GetProp(83,v);}
  625.     BOOL SetPropSearchResult(ENUM v) {return SetProp(83,v);}
  626.  
  627.     BOOL GetPropEndOfCustomProperties(int& v) {return GetProp(84,v);}
  628.     BOOL SetPropEndOfCustomProperties(int v) {return SetProp(84,v);}
  629.  
  630. #if 0
  631.   DECLARE_RESPONSE_TABLE(TVbxEditor);
  632. #endif
  633. };
  634.  
  635. #if 0
  636. // OWL response table
  637. DEFINE_RESPONSE_TABLE1(TVbxEditor, TVbxControl)
  638.   EV_VBXEVENTINDEX( IDC_Editor, Event_Editor_Click, EvClick ),
  639.   EV_VBXEVENTINDEX( IDC_Editor, Event_Editor_DblClick, EvDblClick ),
  640.   EV_VBXEVENTINDEX( IDC_Editor, Event_Editor_DragDrop, EvDragDrop ),
  641.   EV_VBXEVENTINDEX( IDC_Editor, Event_Editor_DragOver, EvDragOver ),
  642.   EV_VBXEVENTINDEX( IDC_Editor, Event_Editor_GotFocus, EvGotFocus ),
  643.   EV_VBXEVENTINDEX( IDC_Editor, Event_Editor_KeyDown, EvKeyDown ),
  644.   EV_VBXEVENTINDEX( IDC_Editor, Event_Editor_KeyPress, EvKeyPress ),
  645.   EV_VBXEVENTINDEX( IDC_Editor, Event_Editor_KeyUp, EvKeyUp ),
  646.   EV_VBXEVENTINDEX( IDC_Editor, Event_Editor_LostFocus, EvLostFocus ),
  647.   EV_VBXEVENTINDEX( IDC_Editor, Event_Editor_MouseDown, EvMouseDown ),
  648.   EV_VBXEVENTINDEX( IDC_Editor, Event_Editor_MouseMove, EvMouseMove ),
  649.   EV_VBXEVENTINDEX( IDC_Editor, Event_Editor_MouseUp, EvMouseUp ),
  650.   EV_VBXEVENTINDEX( IDC_Editor, Event_Editor_FindWordBreak, EvFindWordBreak ),
  651.   EV_VBXEVENTINDEX( IDC_Editor, Event_Editor_SelChange, EvSelChange ),
  652.   EV_VBXEVENTINDEX( IDC_Editor, Event_Editor_TopYChange, EvTopYChange ),
  653.   EV_VBXEVENTINDEX( IDC_Editor, Event_Editor_CaretChange, EvCaretChange ),
  654.   EV_VBXEVENTINDEX( IDC_Editor, Event_Editor_Change, EvChange ),
  655.   EV_VBXEVENTINDEX( IDC_Editor, Event_Editor_SearchReplaceConfirm, EvSearchReplaceConfirm ),
  656.   EV_VBXEVENTINDEX( IDC_Editor, Event_Editor_BeginMessage, EvBeginMessage ),
  657.   EV_VBXEVENTINDEX( IDC_Editor, Event_Editor_ProcessMessage, EvProcessMessage ),
  658.   EV_VBXEVENTINDEX( IDC_Editor, Event_Editor_EndMessage, EvEndMessage ),
  659. END_RESPONSE_TABLE;
  660. #endif
  661.  
  662. #endif
  663.  
  664.