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

  1. //--------------------------------------------------------
  2. // MHMQ2001.H generated from MHMQ200.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. // MhMarque (VB1)
  12. //--------------------------------------------------------
  13.  
  14. // properties
  15. #define Prop_MhMarque_CtlName 0
  16. #define Prop_MhMarque_Index 1
  17. #define Prop_MhMarque_Parent 2
  18. #define Prop_MhMarque_BackColor 3
  19. #define Prop_MhMarque_Left 4
  20. #define Prop_MhMarque_Top 5
  21. #define Prop_MhMarque_Width 6
  22. #define Prop_MhMarque_Height 7
  23. #define Prop_MhMarque_Enabled 8
  24. #define Prop_MhMarque_Visible 9
  25. #define Prop_MhMarque_MousePointer 10
  26. #define Prop_MhMarque_Caption 11
  27. #define Prop_MhMarque_FontName 12
  28. #define Prop_MhMarque_FontSize 13
  29. #define Prop_MhMarque_FontBold 14
  30. #define Prop_MhMarque_FontItalic 15
  31. #define Prop_MhMarque_FontStrikethru 16
  32. #define Prop_MhMarque_FontUnderline 17
  33. #define Prop_MhMarque_DragMode 18
  34. #define Prop_MhMarque_DragIcon 19
  35. #define Prop_MhMarque_TabIndex 20
  36. #define Prop_MhMarque_TabStop 21
  37. #define Prop_MhMarque_Tag 22
  38. #define Prop_MhMarque_Autosize 23
  39. #define Prop_MhMarque_ForeColor 24
  40. #define Prop_MhMarque_FontTransParent 25
  41. #define Prop_MhMarque_PictureTop 26
  42. #define Prop_MhMarque_PictureLeft 27
  43. #define Prop_MhMarque_PictureRight 28
  44. #define Prop_MhMarque_PictureBottom 29
  45. #define Prop_MhMarque_CaptionTop 30
  46. #define Prop_MhMarque_CaptionLeft 31
  47. #define Prop_MhMarque_CaptionRight 32
  48. #define Prop_MhMarque_CaptionBottom 33
  49. #define Prop_MhMarque_BorderColor 34
  50. #define Prop_MhMarque_LightColor 35
  51. #define Prop_MhMarque_OuterFillColor 36
  52. #define Prop_MhMarque_ShadowColor 37
  53. #define Prop_MhMarque_Style 38
  54. #define Prop_MhMarque_TextColor 39
  55. #define Prop_MhMarque_TextFillColor 40
  56. #define Prop_MhMarque_Interval 41
  57. #define Prop_MhMarque_Picture1 42
  58. #define Prop_MhMarque_Picture2 43
  59. #define Prop_MhMarque_Picture3 44
  60. #define Prop_MhMarque_Direction 45
  61. #define Prop_MhMarque_hWnd 46
  62. #define Prop_MhMarque_NoPropHelpContextId 47
  63. #define Prop_MhMarque_FontStyle 48
  64.  
  65. // events
  66. #define Event_MhMarque_Click 0
  67. #define Event_MhMarque_DragDrop 1
  68. #define Event_MhMarque_DragOver 2
  69. #define Event_MhMarque_GotFocus 3
  70. #define Event_MhMarque_KeyDown 4
  71. #define Event_MhMarque_KeyPress 5
  72. #define Event_MhMarque_KeyUp 6
  73. #define Event_MhMarque_LostFocus 7
  74. #define Event_MhMarque_MouseDown 8
  75. #define Event_MhMarque_MouseMove 9
  76. #define Event_MhMarque_MouseUp 10
  77.  
  78. // default form data
  79. //
  80. // Some VBX controls do not operate correctly when created without
  81. // a form file.  This occurs when a program creates a control
  82. // dynamically rather than as part of a dialog resource.  If this
  83. // control exhibits problems in this mode, try creating it with the
  84. // following form data:
  85. //
  86. // For OWL programs:
  87. //
  88. //   TVbxMhMarque* c = new TVbxMhMarque(..., sizeof(MhMarqueData), MhMarqueData);
  89. //
  90. // For C/C++ programs:
  91. //
  92. //   HFORMFILE file = VBXCreateFormFile(sizeof(MhMarqueData), MhMarqueData);
  93. //   HCTL c = VBXCreate(..., file);
  94. //   VBXDeleteFormFile(file);
  95. //
  96. // Note that the VBXGEN_DATA or MhMarque_DATA symbol must be
  97. // defined in order to use the default form data.
  98. //
  99. extern BYTE MhMarqueData[170L];
  100. #if defined(VBXGEN_DATA) || defined(MhMarque_DATA)
  101.   BYTE MhMarqueData[170L]={
  102.     0x26,0x00,0x01,0x00,0x00,0x03,0xff,0xff,
  103.     0xff,0x00,0x04,0x08,0xff,0xff,0x09,0xff,
  104.     0xff,0x0a,0x00,0x0b,0x08,0x4d,0x68,0x4d,
  105.     0x61,0x72,0x71,0x75,0x65,0x0c,0x40,0x01,
  106.     0x07,0x00,0x00,0x00,0x00,0x00,0xbc,0x02,
  107.     0x00,0x00,0x00,0x00,0x01,0x02,0x02,0x22,
  108.     0x53,0x79,0x73,0x74,0x65,0x6d,0x00,0x14,
  109.     0x50,0x00,0x46,0x14,0x50,0x00,0x46,0x14,
  110.     0xb7,0x13,0xf1,0x26,0x73,0x19,0x3f,0x14,
  111.     0x50,0x00,0x46,0x14,0x64,0x17,0x30,0x1d,
  112.     0x12,0x00,0x14,0x00,0x00,0x15,0x00,0x00,
  113.     0x16,0x00,0x17,0x01,0x00,0x18,0x00,0x00,
  114.     0x00,0x00,0x19,0xff,0xff,0x1a,0x69,0x00,
  115.     0x1b,0x3b,0x01,0x1c,0x3b,0x01,0x1d,0xc2,
  116.     0x01,0x1e,0xc1,0x02,0x1f,0x2d,0x00,0x20,
  117.     0x2d,0x00,0x21,0x5a,0x00,0x22,0x00,0x00,
  118.     0x00,0x00,0x23,0xff,0xff,0xff,0x00,0x24,
  119.     0xc0,0xc0,0xc0,0x00,0x25,0x80,0x80,0x80,
  120.     0x00,0x27,0x00,0x00,0x00,0x00,0x28,0xc0,
  121.     0xc0,0xc0,0x00,0x29,0xe8,0x03,0x00,0x00,
  122.     0x2d,0x00,0x2f,0x00,0x00,0x00,0x00,0x30,
  123.     0x00,0xff,
  124.   };
  125. #endif
  126.  
  127. #ifdef __OWL_VBXCTL_H
  128.  
  129. // OWL class
  130. class TVbxMhMarque : public TVbxControl {
  131.   public:
  132.  
  133.     // constructors
  134.     TVbxMhMarque(TWindow* parent, int id, LPCSTR title,
  135.         int x, int y, int w, int h,
  136.         long initLen=0, void far* initData=0, TModule* module=0) :
  137.       TVbxControl(parent, id, "MHMQ200.VBX", "MhMarque",
  138.           title, x, y, w, h, initLen, initData, module) {}
  139.  
  140.     TVbxMhMarque(TWindow* parent, int resourceId, TModule* module=0) :
  141.         TVbxControl(parent, resourceId, module) {}
  142.  
  143. #if 0
  144.     // event handlers
  145.     void EvClick(VBXEVENT FAR*)
  146.     {
  147.       // no arguments
  148.     }
  149.  
  150.     void EvDragDrop(VBXEVENT FAR*)
  151.     {
  152.       // Source As Control,X As Integer,Y As Integer
  153.     }
  154.  
  155.     void EvDragOver(VBXEVENT FAR*)
  156.     {
  157.       // Source As Control,X As Integer,Y As Integer,State As Integer
  158.     }
  159.  
  160.     void EvGotFocus(VBXEVENT FAR*)
  161.     {
  162.       // no arguments
  163.     }
  164.  
  165.     void EvKeyDown(VBXEVENT FAR*)
  166.     {
  167.       // KeyCode As Integer,Shift As Integer
  168.     }
  169.  
  170.     void EvKeyPress(VBXEVENT FAR*)
  171.     {
  172.       // KeyAscii As Integer
  173.     }
  174.  
  175.     void EvKeyUp(VBXEVENT FAR*)
  176.     {
  177.       // KeyCode As Integer,Shift As Integer
  178.     }
  179.  
  180.     void EvLostFocus(VBXEVENT FAR*)
  181.     {
  182.       // no arguments
  183.     }
  184.  
  185.     void EvMouseDown(VBXEVENT FAR*)
  186.     {
  187.       // Button As Integer,Shift As Integer,X As Integer,Y As Integer
  188.     }
  189.  
  190.     void EvMouseMove(VBXEVENT FAR*)
  191.     {
  192.       // Button As Integer,Shift As Integer,X As Integer,Y As Integer
  193.     }
  194.  
  195.     void EvMouseUp(VBXEVENT FAR*)
  196.     {
  197.       // Button As Integer,Shift As Integer,X As Integer,Y As Integer
  198.     }
  199.  
  200. #endif
  201.  
  202.     // enumerations
  203.     enum { // values for property MousePointer
  204.       MousePointer_0_Default,
  205.       MousePointer_1_Arrow,
  206.       MousePointer_2_Cross,
  207.       MousePointer_3_IBeam,
  208.       MousePointer_4_Icon,
  209.       MousePointer_5_Size,
  210.       MousePointer_6_Size_NE_SW,
  211.       MousePointer_7_Size_NS,
  212.       MousePointer_8_Size_NW_SE,
  213.       MousePointer_9_Size_WE,
  214.       MousePointer_10_Up_Arrow,
  215.       MousePointer_11_Hourglass,
  216.       MousePointer_12_No_Drop,
  217.     };
  218.  
  219.     enum { // values for property DragMode
  220.       DragMode_0_Manual,
  221.       DragMode_1_Automatic,
  222.     };
  223.  
  224.     enum { // values for property Style
  225.       Style_0_Moving_Text_Picture123,
  226.       Style_1_Moving_Text_Static_Picture1,
  227.       Style_2_Static_Text_Picture123,
  228.       Style_3_Static_Text_Static_Picture1,
  229.     };
  230.  
  231.     enum { // values for property Direction
  232.       Direction_0_Forward,
  233.       Direction_1_Backward,
  234.     };
  235.  
  236.     enum { // values for property FontStyle
  237.       FontStyle_0_None,
  238.       FontStyle_1_Raised,
  239.       FontStyle_2_Raised_with_more_shading,
  240.       FontStyle_3_Lowered,
  241.       FontStyle_4_Lowered_with_more_shading,
  242.     };
  243.  
  244.  
  245.     // properties
  246.     BOOL GetPropCtlName(string& v) {return GetProp(0,v);}
  247.     BOOL SetPropCtlName(string& v) {return SetProp(0,v);}
  248.  
  249.     BOOL GetPropIndex(int& v) {return GetProp(1,v);}
  250.     BOOL SetPropIndex(int v) {return SetProp(1,v);}
  251.  
  252.     BOOL GetPropParent(int& v) {return GetProp(2,v);}
  253.     BOOL SetPropParent(int v) {return SetProp(2,v);}
  254.  
  255.     BOOL GetPropBackColor(COLORREF& v) {return GetProp(3,v);}
  256.     BOOL SetPropBackColor(COLORREF v) {return SetProp(3,v);}
  257.  
  258.     BOOL GetPropLeft(long& v) {return GetProp(4,v);}
  259.     BOOL SetPropLeft(long v) {return SetProp(4,v);}
  260.  
  261.     BOOL GetPropTop(long& v) {return GetProp(5,v);}
  262.     BOOL SetPropTop(long v) {return SetProp(5,v);}
  263.  
  264.     BOOL GetPropWidth(long& v) {return GetProp(6,v);}
  265.     BOOL SetPropWidth(long v) {return SetProp(6,v);}
  266.  
  267.     BOOL GetPropHeight(long& v) {return GetProp(7,v);}
  268.     BOOL SetPropHeight(long v) {return SetProp(7,v);}
  269.  
  270.     BOOL GetPropEnabled(BOOL& v) {return GetProp(8,v);}
  271.     BOOL SetPropEnabled(BOOL v) {return SetProp(8,v);}
  272.  
  273.     BOOL GetPropVisible(BOOL& v) {return GetProp(9,v);}
  274.     BOOL SetPropVisible(BOOL v) {return SetProp(9,v);}
  275.  
  276.     BOOL GetPropMousePointer(ENUM& v) {return GetProp(10,v);}
  277.     BOOL SetPropMousePointer(ENUM v) {return SetProp(10,v);}
  278.  
  279.     BOOL GetPropCaption(string& v) {return GetProp(11,v);}
  280.     BOOL SetPropCaption(string& v) {return SetProp(11,v);}
  281.  
  282.     BOOL GetPropFontName(string& v) {return GetProp(12,v);}
  283.     BOOL SetPropFontName(string& v) {return SetProp(12,v);}
  284.  
  285.     BOOL GetPropFontSize(float& v) {return GetProp(13,v);}
  286.     BOOL SetPropFontSize(float v) {return SetProp(13,v);}
  287.  
  288.     BOOL GetPropFontBold(BOOL& v) {return GetProp(14,v);}
  289.     BOOL SetPropFontBold(BOOL v) {return SetProp(14,v);}
  290.  
  291.     BOOL GetPropFontItalic(BOOL& v) {return GetProp(15,v);}
  292.     BOOL SetPropFontItalic(BOOL v) {return SetProp(15,v);}
  293.  
  294.     BOOL GetPropFontStrikethru(BOOL& v) {return GetProp(16,v);}
  295.     BOOL SetPropFontStrikethru(BOOL v) {return SetProp(16,v);}
  296.  
  297.     BOOL GetPropFontUnderline(BOOL& v) {return GetProp(17,v);}
  298.     BOOL SetPropFontUnderline(BOOL v) {return SetProp(17,v);}
  299.  
  300.     BOOL GetPropDragMode(ENUM& v) {return GetProp(18,v);}
  301.     BOOL SetPropDragMode(ENUM v) {return SetProp(18,v);}
  302.  
  303.     BOOL GetPropDragIcon(HPIC& v) {return GetProp(19,v);}
  304.     BOOL SetPropDragIcon(HPIC v) {return SetProp(19,v);}
  305.  
  306.     BOOL GetPropTabIndex(int& v) {return GetProp(20,v);}
  307.     BOOL SetPropTabIndex(int v) {return SetProp(20,v);}
  308.  
  309.     BOOL GetPropTabStop(BOOL& v) {return GetProp(21,v);}
  310.     BOOL SetPropTabStop(BOOL v) {return SetProp(21,v);}
  311.  
  312.     BOOL GetPropTag(string& v) {return GetProp(22,v);}
  313.     BOOL SetPropTag(string& v) {return SetProp(22,v);}
  314.  
  315.     BOOL GetPropAutosize(BOOL& v) {return GetProp(23,v);}
  316.     BOOL SetPropAutosize(BOOL v) {return SetProp(23,v);}
  317.  
  318.     BOOL GetPropForeColor(COLORREF& v) {return GetProp(24,v);}
  319.     BOOL SetPropForeColor(COLORREF v) {return SetProp(24,v);}
  320.  
  321.     BOOL GetPropFontTransParent(BOOL& v) {return GetProp(25,v);}
  322.     BOOL SetPropFontTransParent(BOOL v) {return SetProp(25,v);}
  323.  
  324.     BOOL GetPropPictureTop(int& v) {return GetProp(26,v);}
  325.     BOOL SetPropPictureTop(int v) {return SetProp(26,v);}
  326.  
  327.     BOOL GetPropPictureLeft(int& v) {return GetProp(27,v);}
  328.     BOOL SetPropPictureLeft(int v) {return SetProp(27,v);}
  329.  
  330.     BOOL GetPropPictureRight(int& v) {return GetProp(28,v);}
  331.     BOOL SetPropPictureRight(int v) {return SetProp(28,v);}
  332.  
  333.     BOOL GetPropPictureBottom(int& v) {return GetProp(29,v);}
  334.     BOOL SetPropPictureBottom(int v) {return SetProp(29,v);}
  335.  
  336.     BOOL GetPropCaptionTop(int& v) {return GetProp(30,v);}
  337.     BOOL SetPropCaptionTop(int v) {return SetProp(30,v);}
  338.  
  339.     BOOL GetPropCaptionLeft(int& v) {return GetProp(31,v);}
  340.     BOOL SetPropCaptionLeft(int v) {return SetProp(31,v);}
  341.  
  342.     BOOL GetPropCaptionRight(int& v) {return GetProp(32,v);}
  343.     BOOL SetPropCaptionRight(int v) {return SetProp(32,v);}
  344.  
  345.     BOOL GetPropCaptionBottom(int& v) {return GetProp(33,v);}
  346.     BOOL SetPropCaptionBottom(int v) {return SetProp(33,v);}
  347.  
  348.     BOOL GetPropBorderColor(COLORREF& v) {return GetProp(34,v);}
  349.     BOOL SetPropBorderColor(COLORREF v) {return SetProp(34,v);}
  350.  
  351.     BOOL GetPropLightColor(COLORREF& v) {return GetProp(35,v);}
  352.     BOOL SetPropLightColor(COLORREF v) {return SetProp(35,v);}
  353.  
  354.     BOOL GetPropOuterFillColor(COLORREF& v) {return GetProp(36,v);}
  355.     BOOL SetPropOuterFillColor(COLORREF v) {return SetProp(36,v);}
  356.  
  357.     BOOL GetPropShadowColor(COLORREF& v) {return GetProp(37,v);}
  358.     BOOL SetPropShadowColor(COLORREF v) {return SetProp(37,v);}
  359.  
  360.     BOOL GetPropStyle(ENUM& v) {return GetProp(38,v);}
  361.     BOOL SetPropStyle(ENUM v) {return SetProp(38,v);}
  362.  
  363.     BOOL GetPropTextColor(COLORREF& v) {return GetProp(39,v);}
  364.     BOOL SetPropTextColor(COLORREF v) {return SetProp(39,v);}
  365.  
  366.     BOOL GetPropTextFillColor(COLORREF& v) {return GetProp(40,v);}
  367.     BOOL SetPropTextFillColor(COLORREF v) {return SetProp(40,v);}
  368.  
  369.     BOOL GetPropInterval(long& v) {return GetProp(41,v);}
  370.     BOOL SetPropInterval(long v) {return SetProp(41,v);}
  371.  
  372.     BOOL GetPropPicture1(HPIC& v) {return GetProp(42,v);}
  373.     BOOL SetPropPicture1(HPIC v) {return SetProp(42,v);}
  374.  
  375.     BOOL GetPropPicture2(HPIC& v) {return GetProp(43,v);}
  376.     BOOL SetPropPicture2(HPIC v) {return SetProp(43,v);}
  377.  
  378.     BOOL GetPropPicture3(HPIC& v) {return GetProp(44,v);}
  379.     BOOL SetPropPicture3(HPIC v) {return SetProp(44,v);}
  380.  
  381.     BOOL GetPropDirection(ENUM& v) {return GetProp(45,v);}
  382.     BOOL SetPropDirection(ENUM v) {return SetProp(45,v);}
  383.  
  384.     BOOL GetProphWnd(int& v) {return GetProp(46,v);}
  385.     BOOL SetProphWnd(int v) {return SetProp(46,v);}
  386.  
  387.     BOOL GetPropNoPropHelpContextId(long& v) {return GetProp(47,v);}
  388.     BOOL SetPropNoPropHelpContextId(long v) {return SetProp(47,v);}
  389.  
  390.     BOOL GetPropFontStyle(ENUM& v) {return GetProp(48,v);}
  391.     BOOL SetPropFontStyle(ENUM v) {return SetProp(48,v);}
  392.  
  393. #if 0
  394.   DECLARE_RESPONSE_TABLE(TVbxMhMarque);
  395. #endif
  396. };
  397.  
  398. #if 0
  399. // OWL response table
  400. DEFINE_RESPONSE_TABLE1(TVbxMhMarque, TVbxControl)
  401.   EV_VBXEVENTINDEX( IDC_MhMarque, Event_MhMarque_Click, EvClick ),
  402.   EV_VBXEVENTINDEX( IDC_MhMarque, Event_MhMarque_DragDrop, EvDragDrop ),
  403.   EV_VBXEVENTINDEX( IDC_MhMarque, Event_MhMarque_DragOver, EvDragOver ),
  404.   EV_VBXEVENTINDEX( IDC_MhMarque, Event_MhMarque_GotFocus, EvGotFocus ),
  405.   EV_VBXEVENTINDEX( IDC_MhMarque, Event_MhMarque_KeyDown, EvKeyDown ),
  406.   EV_VBXEVENTINDEX( IDC_MhMarque, Event_MhMarque_KeyPress, EvKeyPress ),
  407.   EV_VBXEVENTINDEX( IDC_MhMarque, Event_MhMarque_KeyUp, EvKeyUp ),
  408.   EV_VBXEVENTINDEX( IDC_MhMarque, Event_MhMarque_LostFocus, EvLostFocus ),
  409.   EV_VBXEVENTINDEX( IDC_MhMarque, Event_MhMarque_MouseDown, EvMouseDown ),
  410.   EV_VBXEVENTINDEX( IDC_MhMarque, Event_MhMarque_MouseMove, EvMouseMove ),
  411.   EV_VBXEVENTINDEX( IDC_MhMarque, Event_MhMarque_MouseUp, EvMouseUp ),
  412. END_RESPONSE_TABLE;
  413. #endif
  414.  
  415. #endif
  416.  
  417.