home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c016 / 3.ddi / COMMINC.PAK / SAXCOMM1.H
Encoding:
C/C++ Source or Header  |  1993-12-15  |  10.9 KB  |  350 lines

  1. //--------------------------------------------------------
  2. // SAXCOMM1.H generated from SAXCOMM.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. // saxComm (VB1)
  12. //--------------------------------------------------------
  13.  
  14. // properties
  15. #define Prop_saxComm_CtlName 0
  16. #define Prop_saxComm_Index 1
  17. #define Prop_saxComm_BackColor 2
  18. #define Prop_saxComm_ForeColor 3
  19. #define Prop_saxComm_Left 4
  20. #define Prop_saxComm_Top 5
  21. #define Prop_saxComm_Width 6
  22. #define Prop_saxComm_Height 7
  23. #define Prop_saxComm_Visible 8
  24. #define Prop_saxComm_Parent 9
  25. #define Prop_saxComm_DragMode 10
  26. #define Prop_saxComm_DragIcon 11
  27. #define Prop_saxComm_Tag 12
  28. #define Prop_saxComm_Caption 13
  29. #define Prop_saxComm_BorderStyle 14
  30. #define Prop_saxComm_TabIndex 15
  31. #define Prop_saxComm_TabStop 16
  32. #define Prop_saxComm_Enabled 17
  33. #define Prop_saxComm_MousePointer 18
  34. #define Prop_saxComm_hWnd 19
  35. #define Prop_saxComm_Port 20
  36. #define Prop_saxComm_Speed 21
  37. #define Prop_saxComm_Parity 22
  38. #define Prop_saxComm_DataBits 23
  39. #define Prop_saxComm_StopBits 24
  40. #define Prop_saxComm_MaxReceiveLen 25
  41. #define Prop_saxComm_Receive 26
  42. #define Prop_saxComm_Send 27
  43. #define Prop_saxComm_Echo 28
  44. #define Prop_saxComm_AutoReceive 29
  45. #define Prop_saxComm_AutoSend 30
  46. #define Prop_saxComm_Upload 31
  47. #define Prop_saxComm_Download 32
  48. #define Prop_saxComm_BytesTransferred 33
  49. #define Prop_saxComm_XonXoff 34
  50. #define Prop_saxComm_CtsRts 35
  51. #define Prop_saxComm_About 36
  52.  
  53. // events
  54. #define Event_saxComm_Click 0
  55. #define Event_saxComm_DragDrop 1
  56. #define Event_saxComm_DragOver 2
  57. #define Event_saxComm_GotFocus 3
  58. #define Event_saxComm_KeyDown 4
  59. #define Event_saxComm_KeyPress 5
  60. #define Event_saxComm_KeyUp 6
  61. #define Event_saxComm_LostFocus 7
  62. #define Event_saxComm_MouseDown 8
  63. #define Event_saxComm_MouseMove 9
  64. #define Event_saxComm_MouseUp 10
  65.  
  66. // default form data
  67. //
  68. // Some VBX controls do not operate correctly when created without
  69. // a form file.  This occurs when a program creates a control
  70. // dynamically rather than as part of a dialog resource.  If this
  71. // control exhibits problems in this mode, try creating it with the
  72. // following form data:
  73. //
  74. // For OWL programs:
  75. //
  76. //   TVbxsaxComm* c = new TVbxsaxComm(..., sizeof(saxCommData), saxCommData);
  77. //
  78. // For C/C++ programs:
  79. //
  80. //   HFORMFILE file = VBXCreateFormFile(sizeof(saxCommData), saxCommData);
  81. //   HCTL c = VBXCreate(..., file);
  82. //   VBXDeleteFormFile(file);
  83. //
  84. // Note that the VBXGEN_DATA or saxComm_DATA symbol must be
  85. // defined in order to use the default form data.
  86. //
  87. extern BYTE saxCommData[77L];
  88. #if defined(VBXGEN_DATA) || defined(saxComm_DATA)
  89.   BYTE saxCommData[77L]={
  90.     0x01,0x00,0x00,0x02,0x00,0x00,0x7f,0x00,
  91.     0x03,0xff,0xff,0xff,0x00,0x04,0x08,0xff,
  92.     0xff,0x0a,0x00,0x0c,0x00,0x0d,0x07,0x73,
  93.     0x61,0x78,0x43,0x6f,0x6d,0x6d,0x0e,0x00,
  94.     0x0f,0x00,0x00,0x10,0x00,0x00,0x11,0xff,
  95.     0xff,0x12,0x00,0x14,0x00,0x15,0x60,0x09,
  96.     0x00,0x00,0x16,0x00,0x17,0x08,0x00,0x18,
  97.     0x01,0x00,0x19,0x00,0x00,0x1c,0x00,0x00,
  98.     0x1d,0xff,0xff,0x1e,0xff,0xff,0x22,0x00,
  99.     0x00,0x23,0x00,0x00,0xff,
  100.   };
  101. #endif
  102.  
  103. #ifdef __OWL_VBXCTL_H
  104.  
  105. // OWL class
  106. class TVbxsaxComm : public TVbxControl {
  107.   public:
  108.  
  109.     // constructors
  110.     TVbxsaxComm(TWindow* parent, int id, LPCSTR title,
  111.         int x, int y, int w, int h,
  112.         long initLen=0, void far* initData=0, TModule* module=0) :
  113.       TVbxControl(parent, id, "SAXCOMM.VBX", "saxComm",
  114.           title, x, y, w, h, initLen, initData, module) {}
  115.  
  116.     TVbxsaxComm(TWindow* parent, int resourceId, TModule* module=0) :
  117.         TVbxControl(parent, resourceId, module) {}
  118.  
  119. #if 0
  120.     // event handlers
  121.     void EvClick(VBXEVENT FAR*)
  122.     {
  123.       // no arguments
  124.     }
  125.  
  126.     void EvDragDrop(VBXEVENT FAR*)
  127.     {
  128.       // Source As Control,X As Integer,Y As Integer
  129.     }
  130.  
  131.     void EvDragOver(VBXEVENT FAR*)
  132.     {
  133.       // Source As Control,X As Integer,Y As Integer,State As Integer
  134.     }
  135.  
  136.     void EvGotFocus(VBXEVENT FAR*)
  137.     {
  138.       // no arguments
  139.     }
  140.  
  141.     void EvKeyDown(VBXEVENT FAR*)
  142.     {
  143.       // KeyCode As Integer,Shift As Integer
  144.     }
  145.  
  146.     void EvKeyPress(VBXEVENT FAR*)
  147.     {
  148.       // KeyAscii As Integer
  149.     }
  150.  
  151.     void EvKeyUp(VBXEVENT FAR*)
  152.     {
  153.       // KeyCode As Integer,Shift As Integer
  154.     }
  155.  
  156.     void EvLostFocus(VBXEVENT FAR*)
  157.     {
  158.       // no arguments
  159.     }
  160.  
  161.     void EvMouseDown(VBXEVENT FAR*)
  162.     {
  163.       // Button As Integer,Shift As Integer,X As Integer,Y As Integer
  164.     }
  165.  
  166.     void EvMouseMove(VBXEVENT FAR*)
  167.     {
  168.       // Button As Integer,Shift As Integer,X As Integer,Y As Integer
  169.     }
  170.  
  171.     void EvMouseUp(VBXEVENT FAR*)
  172.     {
  173.       // Button As Integer,Shift As Integer,X As Integer,Y As Integer
  174.     }
  175.  
  176. #endif
  177.  
  178.     // enumerations
  179.     enum { // values for property DragMode
  180.       DragMode_0_Manual,
  181.       DragMode_1_Automatic,
  182.     };
  183.  
  184.     enum { // values for property BorderStyle
  185.       BorderStyle_0_None,
  186.       BorderStyle_1_Fixed_Single,
  187.     };
  188.  
  189.     enum { // values for property MousePointer
  190.       MousePointer_0_Default,
  191.       MousePointer_1_Arrow,
  192.       MousePointer_2_Cross,
  193.       MousePointer_3_IBeam,
  194.       MousePointer_4_Icon,
  195.       MousePointer_5_Size,
  196.       MousePointer_6_Size_NE_SW,
  197.       MousePointer_7_Size_NS,
  198.       MousePointer_8_Size_NW_SE,
  199.       MousePointer_9_Size_WE,
  200.       MousePointer_10_Up_Arrow,
  201.       MousePointer_11_Hourglass,
  202.       MousePointer_12_No_Drop,
  203.     };
  204.  
  205.     enum { // values for property Parity
  206.       Parity_0_None,
  207.       Parity_1_Even,
  208.       Parity_2_Odd,
  209.       Parity_3_Mark,
  210.       Parity_4_Space,
  211.     };
  212.  
  213.  
  214.     // properties
  215.     BOOL GetPropCtlName(string& v) {return GetProp(0,v);}
  216.     BOOL SetPropCtlName(string& v) {return SetProp(0,v);}
  217.  
  218.     BOOL GetPropIndex(int& v) {return GetProp(1,v);}
  219.     BOOL SetPropIndex(int v) {return SetProp(1,v);}
  220.  
  221.     BOOL GetPropBackColor(COLORREF& v) {return GetProp(2,v);}
  222.     BOOL SetPropBackColor(COLORREF v) {return SetProp(2,v);}
  223.  
  224.     BOOL GetPropForeColor(COLORREF& v) {return GetProp(3,v);}
  225.     BOOL SetPropForeColor(COLORREF v) {return SetProp(3,v);}
  226.  
  227.     BOOL GetPropLeft(long& v) {return GetProp(4,v);}
  228.     BOOL SetPropLeft(long v) {return SetProp(4,v);}
  229.  
  230.     BOOL GetPropTop(long& v) {return GetProp(5,v);}
  231.     BOOL SetPropTop(long v) {return SetProp(5,v);}
  232.  
  233.     BOOL GetPropWidth(long& v) {return GetProp(6,v);}
  234.     BOOL SetPropWidth(long v) {return SetProp(6,v);}
  235.  
  236.     BOOL GetPropHeight(long& v) {return GetProp(7,v);}
  237.     BOOL SetPropHeight(long v) {return SetProp(7,v);}
  238.  
  239.     BOOL GetPropVisible(BOOL& v) {return GetProp(8,v);}
  240.     BOOL SetPropVisible(BOOL v) {return SetProp(8,v);}
  241.  
  242.     BOOL GetPropParent(int& v) {return GetProp(9,v);}
  243.     BOOL SetPropParent(int v) {return SetProp(9,v);}
  244.  
  245.     BOOL GetPropDragMode(ENUM& v) {return GetProp(10,v);}
  246.     BOOL SetPropDragMode(ENUM v) {return SetProp(10,v);}
  247.  
  248.     BOOL GetPropDragIcon(HPIC& v) {return GetProp(11,v);}
  249.     BOOL SetPropDragIcon(HPIC v) {return SetProp(11,v);}
  250.  
  251.     BOOL GetPropTag(string& v) {return GetProp(12,v);}
  252.     BOOL SetPropTag(string& v) {return SetProp(12,v);}
  253.  
  254.     BOOL GetPropCaption(string& v) {return GetProp(13,v);}
  255.     BOOL SetPropCaption(string& v) {return SetProp(13,v);}
  256.  
  257.     BOOL GetPropBorderStyle(ENUM& v) {return GetProp(14,v);}
  258.     BOOL SetPropBorderStyle(ENUM v) {return SetProp(14,v);}
  259.  
  260.     BOOL GetPropTabIndex(int& v) {return GetProp(15,v);}
  261.     BOOL SetPropTabIndex(int v) {return SetProp(15,v);}
  262.  
  263.     BOOL GetPropTabStop(BOOL& v) {return GetProp(16,v);}
  264.     BOOL SetPropTabStop(BOOL v) {return SetProp(16,v);}
  265.  
  266.     BOOL GetPropEnabled(BOOL& v) {return GetProp(17,v);}
  267.     BOOL SetPropEnabled(BOOL v) {return SetProp(17,v);}
  268.  
  269.     BOOL GetPropMousePointer(ENUM& v) {return GetProp(18,v);}
  270.     BOOL SetPropMousePointer(ENUM v) {return SetProp(18,v);}
  271.  
  272.     BOOL GetProphWnd(int& v) {return GetProp(19,v);}
  273.     BOOL SetProphWnd(int v) {return SetProp(19,v);}
  274.  
  275.     BOOL GetPropPort(string& v) {return GetProp(20,v);}
  276.     BOOL SetPropPort(string& v) {return SetProp(20,v);}
  277.  
  278.     BOOL GetPropSpeed(long& v) {return GetProp(21,v);}
  279.     BOOL SetPropSpeed(long v) {return SetProp(21,v);}
  280.  
  281.     BOOL GetPropParity(ENUM& v) {return GetProp(22,v);}
  282.     BOOL SetPropParity(ENUM v) {return SetProp(22,v);}
  283.  
  284.     BOOL GetPropDataBits(int& v) {return GetProp(23,v);}
  285.     BOOL SetPropDataBits(int v) {return SetProp(23,v);}
  286.  
  287.     BOOL GetPropStopBits(int& v) {return GetProp(24,v);}
  288.     BOOL SetPropStopBits(int v) {return SetProp(24,v);}
  289.  
  290.     BOOL GetPropMaxReceiveLen(int& v) {return GetProp(25,v);}
  291.     BOOL SetPropMaxReceiveLen(int v) {return SetProp(25,v);}
  292.  
  293.     BOOL GetPropReceive(string& v) {return GetProp(26,v);}
  294.     BOOL SetPropReceive(string& v) {return SetProp(26,v);}
  295.  
  296.     BOOL GetPropSend(string& v) {return GetProp(27,v);}
  297.     BOOL SetPropSend(string& v) {return SetProp(27,v);}
  298.  
  299.     BOOL GetPropEcho(BOOL& v) {return GetProp(28,v);}
  300.     BOOL SetPropEcho(BOOL v) {return SetProp(28,v);}
  301.  
  302.     BOOL GetPropAutoReceive(BOOL& v) {return GetProp(29,v);}
  303.     BOOL SetPropAutoReceive(BOOL v) {return SetProp(29,v);}
  304.  
  305.     BOOL GetPropAutoSend(BOOL& v) {return GetProp(30,v);}
  306.     BOOL SetPropAutoSend(BOOL v) {return SetProp(30,v);}
  307.  
  308.     BOOL GetPropUpload(string& v) {return GetProp(31,v);}
  309.     BOOL SetPropUpload(string& v) {return SetProp(31,v);}
  310.  
  311.     BOOL GetPropDownload(string& v) {return GetProp(32,v);}
  312.     BOOL SetPropDownload(string& v) {return SetProp(32,v);}
  313.  
  314.     BOOL GetPropBytesTransferred(long& v) {return GetProp(33,v);}
  315.     BOOL SetPropBytesTransferred(long v) {return SetProp(33,v);}
  316.  
  317.     BOOL GetPropXonXoff(BOOL& v) {return GetProp(34,v);}
  318.     BOOL SetPropXonXoff(BOOL v) {return SetProp(34,v);}
  319.  
  320.     BOOL GetPropCtsRts(BOOL& v) {return GetProp(35,v);}
  321.     BOOL SetPropCtsRts(BOOL v) {return SetProp(35,v);}
  322.  
  323.     BOOL GetPropAbout(string& v) {return GetProp(36,v);}
  324.     BOOL SetPropAbout(string& v) {return SetProp(36,v);}
  325.  
  326. #if 0
  327.   DECLARE_RESPONSE_TABLE(TVbxsaxComm);
  328. #endif
  329. };
  330.  
  331. #if 0
  332. // OWL response table
  333. DEFINE_RESPONSE_TABLE1(TVbxsaxComm, TVbxControl)
  334.   EV_VBXEVENTINDEX( IDC_saxComm, Event_saxComm_Click, EvClick ),
  335.   EV_VBXEVENTINDEX( IDC_saxComm, Event_saxComm_DragDrop, EvDragDrop ),
  336.   EV_VBXEVENTINDEX( IDC_saxComm, Event_saxComm_DragOver, EvDragOver ),
  337.   EV_VBXEVENTINDEX( IDC_saxComm, Event_saxComm_GotFocus, EvGotFocus ),
  338.   EV_VBXEVENTINDEX( IDC_saxComm, Event_saxComm_KeyDown, EvKeyDown ),
  339.   EV_VBXEVENTINDEX( IDC_saxComm, Event_saxComm_KeyPress, EvKeyPress ),
  340.   EV_VBXEVENTINDEX( IDC_saxComm, Event_saxComm_KeyUp, EvKeyUp ),
  341.   EV_VBXEVENTINDEX( IDC_saxComm, Event_saxComm_LostFocus, EvLostFocus ),
  342.   EV_VBXEVENTINDEX( IDC_saxComm, Event_saxComm_MouseDown, EvMouseDown ),
  343.   EV_VBXEVENTINDEX( IDC_saxComm, Event_saxComm_MouseMove, EvMouseMove ),
  344.   EV_VBXEVENTINDEX( IDC_saxComm, Event_saxComm_MouseUp, EvMouseUp ),
  345. END_RESPONSE_TABLE;
  346. #endif
  347.  
  348. #endif
  349.  
  350.