home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c016 / 3.ddi / MHINC.PAK / MHSL2001.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-15  |  9.4 KB  |  308 lines

  1. //--------------------------------------------------------
  2. // MHSL2001.H generated from MHSL200.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. // MhSlide (VB1)
  12. //--------------------------------------------------------
  13.  
  14. // properties
  15. #define Prop_MhSlide_CtlName 0
  16. #define Prop_MhSlide_Index 1
  17. #define Prop_MhSlide_Parent 2
  18. #define Prop_MhSlide_BackColor 3
  19. #define Prop_MhSlide_ForeColor 4
  20. #define Prop_MhSlide_Left 5
  21. #define Prop_MhSlide_Top 6
  22. #define Prop_MhSlide_Width 7
  23. #define Prop_MhSlide_Height 8
  24. #define Prop_MhSlide_Enabled 9
  25. #define Prop_MhSlide_Visible 10
  26. #define Prop_MhSlide_MousePointer 11
  27. #define Prop_MhSlide_Value 12
  28. #define Prop_MhSlide_DragMode 13
  29. #define Prop_MhSlide_DragIcon 14
  30. #define Prop_MhSlide_TabIndex 15
  31. #define Prop_MhSlide_TabStop 16
  32. #define Prop_MhSlide_Tag 17
  33. #define Prop_MhSlide_Style 18
  34. #define Prop_MhSlide_Min 19
  35. #define Prop_MhSlide_Max 20
  36. #define Prop_MhSlide_PictureSlide 21
  37. #define Prop_MhSlide_PictureButton 22
  38. #define Prop_MhSlide_PictureMask 23
  39. #define Prop_MhSlide_LargeUp 24
  40. #define Prop_MhSlide_LargeDown 25
  41. #define Prop_MhSlide_SmallUp 26
  42. #define Prop_MhSlide_SmallDown 27
  43. #define Prop_MhSlide_hWnd 28
  44.  
  45. // events
  46. #define Event_MhSlide_Change 0
  47. #define Event_MhSlide_DragDrop 1
  48. #define Event_MhSlide_DragOver 2
  49. #define Event_MhSlide_GotFocus 3
  50. #define Event_MhSlide_KeyDown 4
  51. #define Event_MhSlide_KeyPress 5
  52. #define Event_MhSlide_KeyUp 6
  53. #define Event_MhSlide_LostFocus 7
  54. #define Event_MhSlide_MouseDown 8
  55. #define Event_MhSlide_MouseMove 9
  56. #define Event_MhSlide_MouseUp 10
  57.  
  58. // default form data
  59. //
  60. // Some VBX controls do not operate correctly when created without
  61. // a form file.  This occurs when a program creates a control
  62. // dynamically rather than as part of a dialog resource.  If this
  63. // control exhibits problems in this mode, try creating it with the
  64. // following form data:
  65. //
  66. // For OWL programs:
  67. //
  68. //   TVbxMhSlide* c = new TVbxMhSlide(..., sizeof(MhSlideData), MhSlideData);
  69. //
  70. // For C/C++ programs:
  71. //
  72. //   HFORMFILE file = VBXCreateFormFile(sizeof(MhSlideData), MhSlideData);
  73. //   HCTL c = VBXCreate(..., file);
  74. //   VBXDeleteFormFile(file);
  75. //
  76. // Note that the VBXGEN_DATA or MhSlide_DATA symbol must be
  77. // defined in order to use the default form data.
  78. //
  79. extern BYTE MhSlideData[56L];
  80. #if defined(VBXGEN_DATA) || defined(MhSlide_DATA)
  81.   BYTE MhSlideData[56L]={
  82.     0x12,0x00,0x01,0x00,0x00,0x03,0xff,0xff,
  83.     0xff,0x00,0x04,0x00,0x00,0x00,0x00,0x05,
  84.     0x09,0xff,0xff,0x0a,0xff,0xff,0x0b,0x00,
  85.     0x0c,0x00,0x00,0x0d,0x00,0x0f,0x00,0x00,
  86.     0x10,0x00,0x00,0x11,0x00,0x13,0x00,0x00,
  87.     0x14,0x00,0x00,0x18,0x00,0x00,0x19,0x00,
  88.     0x00,0x1a,0x00,0x00,0x1b,0x00,0x00,0xff,
  89.     
  90.   };
  91. #endif
  92.  
  93. #ifdef __OWL_VBXCTL_H
  94.  
  95. // OWL class
  96. class TVbxMhSlide : public TVbxControl {
  97.   public:
  98.  
  99.     // constructors
  100.     TVbxMhSlide(TWindow* parent, int id, LPCSTR title,
  101.         int x, int y, int w, int h,
  102.         long initLen=0, void far* initData=0, TModule* module=0) :
  103.       TVbxControl(parent, id, "MHSL200.VBX", "MhSlide",
  104.           title, x, y, w, h, initLen, initData, module) {}
  105.  
  106.     TVbxMhSlide(TWindow* parent, int resourceId, TModule* module=0) :
  107.         TVbxControl(parent, resourceId, module) {}
  108.  
  109. #if 0
  110.     // event handlers
  111.     void EvChange(VBXEVENT FAR*)
  112.     {
  113.       // no arguments
  114.     }
  115.  
  116.     void EvDragDrop(VBXEVENT FAR*)
  117.     {
  118.       // Source As Control,X As Integer,Y As Integer
  119.     }
  120.  
  121.     void EvDragOver(VBXEVENT FAR*)
  122.     {
  123.       // Source As Control,X As Integer,Y As Integer,State As Integer
  124.     }
  125.  
  126.     void EvGotFocus(VBXEVENT FAR*)
  127.     {
  128.       // no arguments
  129.     }
  130.  
  131.     void EvKeyDown(VBXEVENT FAR*)
  132.     {
  133.       // KeyCode As Integer,Shift As Integer
  134.     }
  135.  
  136.     void EvKeyPress(VBXEVENT FAR*)
  137.     {
  138.       // KeyAscii As Integer
  139.     }
  140.  
  141.     void EvKeyUp(VBXEVENT FAR*)
  142.     {
  143.       // KeyCode As Integer,Shift As Integer
  144.     }
  145.  
  146.     void EvLostFocus(VBXEVENT FAR*)
  147.     {
  148.       // no arguments
  149.     }
  150.  
  151.     void EvMouseDown(VBXEVENT FAR*)
  152.     {
  153.       // Button As Integer,Shift As Integer,X As Integer,Y As Integer
  154.     }
  155.  
  156.     void EvMouseMove(VBXEVENT FAR*)
  157.     {
  158.       // Button As Integer,Shift As Integer,X As Integer,Y As Integer
  159.     }
  160.  
  161.     void EvMouseUp(VBXEVENT FAR*)
  162.     {
  163.       // Button As Integer,Shift As Integer,X As Integer,Y As Integer
  164.     }
  165.  
  166. #endif
  167.  
  168.     // enumerations
  169.     enum { // values for property MousePointer
  170.       MousePointer_0_Default,
  171.       MousePointer_1_Arrow,
  172.       MousePointer_2_Cross,
  173.       MousePointer_3_IBeam,
  174.       MousePointer_4_Icon,
  175.       MousePointer_5_Size,
  176.       MousePointer_6_Size_NE_SW,
  177.       MousePointer_7_Size_NS,
  178.       MousePointer_8_Size_NW_SE,
  179.       MousePointer_9_Size_WE,
  180.       MousePointer_10_Up_Arrow,
  181.       MousePointer_11_Hourglass,
  182.       MousePointer_12_No_Drop,
  183.     };
  184.  
  185.     enum { // values for property DragMode
  186.       DragMode_0_Manual,
  187.       DragMode_1_Automatic,
  188.     };
  189.  
  190.     enum { // values for property Style
  191.       Style_0_Vertical,
  192.       Style_1_Horizontal,
  193.     };
  194.  
  195.  
  196.     // properties
  197.     BOOL GetPropCtlName(string& v) {return GetProp(0,v);}
  198.     BOOL SetPropCtlName(string& v) {return SetProp(0,v);}
  199.  
  200.     BOOL GetPropIndex(int& v) {return GetProp(1,v);}
  201.     BOOL SetPropIndex(int v) {return SetProp(1,v);}
  202.  
  203.     BOOL GetPropParent(int& v) {return GetProp(2,v);}
  204.     BOOL SetPropParent(int v) {return SetProp(2,v);}
  205.  
  206.     BOOL GetPropBackColor(COLORREF& v) {return GetProp(3,v);}
  207.     BOOL SetPropBackColor(COLORREF v) {return SetProp(3,v);}
  208.  
  209.     BOOL GetPropForeColor(COLORREF& v) {return GetProp(4,v);}
  210.     BOOL SetPropForeColor(COLORREF v) {return SetProp(4,v);}
  211.  
  212.     BOOL GetPropLeft(long& v) {return GetProp(5,v);}
  213.     BOOL SetPropLeft(long v) {return SetProp(5,v);}
  214.  
  215.     BOOL GetPropTop(long& v) {return GetProp(6,v);}
  216.     BOOL SetPropTop(long v) {return SetProp(6,v);}
  217.  
  218.     BOOL GetPropWidth(long& v) {return GetProp(7,v);}
  219.     BOOL SetPropWidth(long v) {return SetProp(7,v);}
  220.  
  221.     BOOL GetPropHeight(long& v) {return GetProp(8,v);}
  222.     BOOL SetPropHeight(long v) {return SetProp(8,v);}
  223.  
  224.     BOOL GetPropEnabled(BOOL& v) {return GetProp(9,v);}
  225.     BOOL SetPropEnabled(BOOL v) {return SetProp(9,v);}
  226.  
  227.     BOOL GetPropVisible(BOOL& v) {return GetProp(10,v);}
  228.     BOOL SetPropVisible(BOOL v) {return SetProp(10,v);}
  229.  
  230.     BOOL GetPropMousePointer(ENUM& v) {return GetProp(11,v);}
  231.     BOOL SetPropMousePointer(ENUM v) {return SetProp(11,v);}
  232.  
  233.     BOOL GetPropValue(int& v) {return GetProp(12,v);}
  234.     BOOL SetPropValue(int v) {return SetProp(12,v);}
  235.  
  236.     BOOL GetPropDragMode(ENUM& v) {return GetProp(13,v);}
  237.     BOOL SetPropDragMode(ENUM v) {return SetProp(13,v);}
  238.  
  239.     BOOL GetPropDragIcon(HPIC& v) {return GetProp(14,v);}
  240.     BOOL SetPropDragIcon(HPIC v) {return SetProp(14,v);}
  241.  
  242.     BOOL GetPropTabIndex(int& v) {return GetProp(15,v);}
  243.     BOOL SetPropTabIndex(int v) {return SetProp(15,v);}
  244.  
  245.     BOOL GetPropTabStop(BOOL& v) {return GetProp(16,v);}
  246.     BOOL SetPropTabStop(BOOL v) {return SetProp(16,v);}
  247.  
  248.     BOOL GetPropTag(string& v) {return GetProp(17,v);}
  249.     BOOL SetPropTag(string& v) {return SetProp(17,v);}
  250.  
  251.     BOOL GetPropStyle(ENUM& v) {return GetProp(18,v);}
  252.     BOOL SetPropStyle(ENUM v) {return SetProp(18,v);}
  253.  
  254.     BOOL GetPropMin(int& v) {return GetProp(19,v);}
  255.     BOOL SetPropMin(int v) {return SetProp(19,v);}
  256.  
  257.     BOOL GetPropMax(int& v) {return GetProp(20,v);}
  258.     BOOL SetPropMax(int v) {return SetProp(20,v);}
  259.  
  260.     BOOL GetPropPictureSlide(HPIC& v) {return GetProp(21,v);}
  261.     BOOL SetPropPictureSlide(HPIC v) {return SetProp(21,v);}
  262.  
  263.     BOOL GetPropPictureButton(HPIC& v) {return GetProp(22,v);}
  264.     BOOL SetPropPictureButton(HPIC v) {return SetProp(22,v);}
  265.  
  266.     BOOL GetPropPictureMask(HPIC& v) {return GetProp(23,v);}
  267.     BOOL SetPropPictureMask(HPIC v) {return SetProp(23,v);}
  268.  
  269.     BOOL GetPropLargeUp(int& v) {return GetProp(24,v);}
  270.     BOOL SetPropLargeUp(int v) {return SetProp(24,v);}
  271.  
  272.     BOOL GetPropLargeDown(int& v) {return GetProp(25,v);}
  273.     BOOL SetPropLargeDown(int v) {return SetProp(25,v);}
  274.  
  275.     BOOL GetPropSmallUp(int& v) {return GetProp(26,v);}
  276.     BOOL SetPropSmallUp(int v) {return SetProp(26,v);}
  277.  
  278.     BOOL GetPropSmallDown(int& v) {return GetProp(27,v);}
  279.     BOOL SetPropSmallDown(int v) {return SetProp(27,v);}
  280.  
  281.     BOOL GetProphWnd(int& v) {return GetProp(28,v);}
  282.     BOOL SetProphWnd(int v) {return SetProp(28,v);}
  283.  
  284. #if 0
  285.   DECLARE_RESPONSE_TABLE(TVbxMhSlide);
  286. #endif
  287. };
  288.  
  289. #if 0
  290. // OWL response table
  291. DEFINE_RESPONSE_TABLE1(TVbxMhSlide, TVbxControl)
  292.   EV_VBXEVENTINDEX( IDC_MhSlide, Event_MhSlide_Change, EvChange ),
  293.   EV_VBXEVENTINDEX( IDC_MhSlide, Event_MhSlide_DragDrop, EvDragDrop ),
  294.   EV_VBXEVENTINDEX( IDC_MhSlide, Event_MhSlide_DragOver, EvDragOver ),
  295.   EV_VBXEVENTINDEX( IDC_MhSlide, Event_MhSlide_GotFocus, EvGotFocus ),
  296.   EV_VBXEVENTINDEX( IDC_MhSlide, Event_MhSlide_KeyDown, EvKeyDown ),
  297.   EV_VBXEVENTINDEX( IDC_MhSlide, Event_MhSlide_KeyPress, EvKeyPress ),
  298.   EV_VBXEVENTINDEX( IDC_MhSlide, Event_MhSlide_KeyUp, EvKeyUp ),
  299.   EV_VBXEVENTINDEX( IDC_MhSlide, Event_MhSlide_LostFocus, EvLostFocus ),
  300.   EV_VBXEVENTINDEX( IDC_MhSlide, Event_MhSlide_MouseDown, EvMouseDown ),
  301.   EV_VBXEVENTINDEX( IDC_MhSlide, Event_MhSlide_MouseMove, EvMouseMove ),
  302.   EV_VBXEVENTINDEX( IDC_MhSlide, Event_MhSlide_MouseUp, EvMouseUp ),
  303. END_RESPONSE_TABLE;
  304. #endif
  305.  
  306. #endif
  307.  
  308.