home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c016 / 2.ddi / ANIINC.PAK / ANIBRT1.H
Encoding:
C/C++ Source or Header  |  1993-12-15  |  12.9 KB  |  386 lines

  1. //--------------------------------------------------------
  2. // ANIBRT1.H generated from ANIBRT.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. // AniPushButton (VB1, subclassed from Button)
  12. //--------------------------------------------------------
  13.  
  14. // properties
  15. #define Prop_AniPushButton_CtlName 0
  16. #define Prop_AniPushButton_Index 1
  17. #define Prop_AniPushButton_BackColor 2
  18. #define Prop_AniPushButton_ForeColor 3
  19. #define Prop_AniPushButton_Left 4
  20. #define Prop_AniPushButton_Top 5
  21. #define Prop_AniPushButton_Width 6
  22. #define Prop_AniPushButton_Height 7
  23. #define Prop_AniPushButton_Enabled 8
  24. #define Prop_AniPushButton_Visible 9
  25. #define Prop_AniPushButton_MousePointer 10
  26. #define Prop_AniPushButton_Caption 11
  27. #define Prop_AniPushButton_FontName 12
  28. #define Prop_AniPushButton_FontBold 13
  29. #define Prop_AniPushButton_FontItalic 14
  30. #define Prop_AniPushButton_FontStrikethru 15
  31. #define Prop_AniPushButton_FontUnderline 16
  32. #define Prop_AniPushButton_FontSize 17
  33. #define Prop_AniPushButton_TabIndex 18
  34. #define Prop_AniPushButton_Parent 19
  35. #define Prop_AniPushButton_DragMode 20
  36. #define Prop_AniPushButton_DragIcon 21
  37. #define Prop_AniPushButton_TabStop 22
  38. #define Prop_AniPushButton_Tag 23
  39. #define Prop_AniPushButton_Frame 24
  40. #define Prop_AniPushButton_Picture 25
  41. #define Prop_AniPushButton_Cycle 26
  42. #define Prop_AniPushButton_Value 27
  43. #define Prop_AniPushButton_TextXpos 28
  44. #define Prop_AniPushButton_TextYpos 29
  45. #define Prop_AniPushButton_TextPosition 30
  46. #define Prop_AniPushButton_PictureXpos 31
  47. #define Prop_AniPushButton_PictureYpos 32
  48. #define Prop_AniPushButton_PictDrawMode 33
  49. #define Prop_AniPushButton_Speed 34
  50. #define Prop_AniPushButton_CCBfileLoad 35
  51. #define Prop_AniPushButton_CCBfileSave 36
  52. #define Prop_AniPushButton_BorderStyle 37
  53. #define Prop_AniPushButton_About 38
  54. #define Prop_AniPushButton_ClickFilter 39
  55. #define Prop_AniPushButton_SpecialOp 40
  56. #define Prop_AniPushButton_ButtonVersion 41
  57. #define Prop_AniPushButton_ClearFirst 42
  58. #define Prop_AniPushButton_HideFocusBox 43
  59.  
  60. // events
  61. #define Event_AniPushButton_Click 0
  62. #define Event_AniPushButton_DragDrop 1
  63. #define Event_AniPushButton_DragOver 2
  64. #define Event_AniPushButton_GotFocus 3
  65. #define Event_AniPushButton_KeyDown 4
  66. #define Event_AniPushButton_KeyPress 5
  67. #define Event_AniPushButton_KeyUp 6
  68. #define Event_AniPushButton_LostFocus 7
  69.  
  70. // default form data
  71. //
  72. // Some VBX controls do not operate correctly when created without
  73. // a form file.  This occurs when a program creates a control
  74. // dynamically rather than as part of a dialog resource.  If this
  75. // control exhibits problems in this mode, try creating it with the
  76. // following form data:
  77. //
  78. // For OWL programs:
  79. //
  80. //   TVbxAniPushButton* c = new TVbxAniPushButton(..., sizeof(AniPushButtonData), AniPushButtonData);
  81. //
  82. // For C/C++ programs:
  83. //
  84. //   HFORMFILE file = VBXCreateFormFile(sizeof(AniPushButtonData), AniPushButtonData);
  85. //   HCTL c = VBXCreate(..., file);
  86. //   VBXDeleteFormFile(file);
  87. //
  88. // Note that the VBXGEN_DATA or AniPushButton_DATA symbol must be
  89. // defined in order to use the default form data.
  90. //
  91. extern BYTE AniPushButtonData[155L];
  92. #if defined(VBXGEN_DATA) || defined(AniPushButton_DATA)
  93.   BYTE AniPushButtonData[155L]={
  94.     0x01,0x00,0x00,0x02,0xff,0xff,0xff,0x00,
  95.     0x03,0x00,0x00,0x00,0x00,0x04,0x08,0xff,
  96.     0xff,0x09,0xff,0xff,0x0a,0x00,0x0b,0x0d,
  97.     0x41,0x6e,0x69,0x50,0x75,0x73,0x68,0x42,
  98.     0x75,0x74,0x74,0x6f,0x6e,0x0c,0x40,0x01,
  99.     0x07,0x00,0x00,0x00,0x00,0x00,0xbc,0x02,
  100.     0x00,0x00,0x00,0x00,0x01,0x02,0x02,0x22,
  101.     0x53,0x79,0x73,0x74,0x65,0x6d,0x00,0x13,
  102.     0x50,0x00,0x0e,0x12,0x50,0x00,0x0e,0x12,
  103.     0x2f,0x13,0xc1,0x26,0x73,0x19,0x3f,0x13,
  104.     0x50,0x00,0x0e,0x12,0x34,0x1d,0x34,0x1d,
  105.     0x12,0x00,0x00,0x14,0x00,0x16,0x00,0x00,
  106.     0x17,0x00,0x18,0x01,0x00,0x19,0xff,0xff,
  107.     0x00,0x00,0x07,0x12,0x1a,0x00,0x1b,0x01,
  108.     0x00,0x1c,0x32,0x00,0x1d,0x32,0x00,0x1e,
  109.     0x00,0x1f,0x32,0x00,0x20,0x32,0x00,0x21,
  110.     0x00,0x22,0x00,0x00,0x23,0x00,0x24,0x00,
  111.     0x25,0x00,0x27,0x00,0x28,0x00,0x00,0x01,
  112.     0x00,0x29,0x01,0x00,0x2a,0x00,0x00,0x2b,
  113.     0x00,0x00,0xff,
  114.   };
  115. #endif
  116.  
  117. #ifdef __OWL_VBXCTL_H
  118.  
  119. // OWL class
  120. class TVbxAniPushButton : public TVbxControl {
  121.   public:
  122.  
  123.     // constructors
  124.     TVbxAniPushButton(TWindow* parent, int id, LPCSTR title,
  125.         int x, int y, int w, int h,
  126.         long initLen=0, void far* initData=0, TModule* module=0) :
  127.       TVbxControl(parent, id, "ANIBRT.VBX", "AniPushButton",
  128.           title, x, y, w, h, initLen, initData, module) {}
  129.  
  130.     TVbxAniPushButton(TWindow* parent, int resourceId, TModule* module=0) :
  131.         TVbxControl(parent, resourceId, module) {}
  132.  
  133. #if 0
  134.     // event handlers
  135.     void EvClick(VBXEVENT FAR*)
  136.     {
  137.       // no arguments
  138.     }
  139.  
  140.     void EvDragDrop(VBXEVENT FAR*)
  141.     {
  142.       // Source As Control,X As Integer,Y As Integer
  143.     }
  144.  
  145.     void EvDragOver(VBXEVENT FAR*)
  146.     {
  147.       // Source As Control,X As Integer,Y As Integer,State As Integer
  148.     }
  149.  
  150.     void EvGotFocus(VBXEVENT FAR*)
  151.     {
  152.       // no arguments
  153.     }
  154.  
  155.     void EvKeyDown(VBXEVENT FAR*)
  156.     {
  157.       // KeyCode As Integer,Shift As Integer
  158.     }
  159.  
  160.     void EvKeyPress(VBXEVENT FAR*)
  161.     {
  162.       // KeyAscii As Integer
  163.     }
  164.  
  165.     void EvKeyUp(VBXEVENT FAR*)
  166.     {
  167.       // KeyCode As Integer,Shift As Integer
  168.     }
  169.  
  170.     void EvLostFocus(VBXEVENT FAR*)
  171.     {
  172.       // no arguments
  173.     }
  174.  
  175. #endif
  176.  
  177.     // enumerations
  178.     enum { // values for property MousePointer
  179.       MousePointer_0_Default,
  180.       MousePointer_1_Arrow,
  181.       MousePointer_2_Cross,
  182.       MousePointer_3_IBeam,
  183.       MousePointer_4_Icon,
  184.       MousePointer_5_Size,
  185.       MousePointer_6_Size_NE_SW,
  186.       MousePointer_7_Size_NS,
  187.       MousePointer_8_Size_NW_SE,
  188.       MousePointer_9_Size_WE,
  189.       MousePointer_10_Up_Arrow,
  190.       MousePointer_11_Hourglass,
  191.       MousePointer_12_No_Drop,
  192.     };
  193.  
  194.     enum { // values for property DragMode
  195.       DragMode_0_Manual,
  196.       DragMode_1_Automatic,
  197.     };
  198.  
  199.     enum { // values for property Cycle
  200.       Cycle_0_12_12,
  201.       Cycle_1_By_frame,
  202.       Cycle_2_2state_12_12,
  203.     };
  204.  
  205.     enum { // values for property TextPosition
  206.       TextPosition_0_On_picture,
  207.       TextPosition_1_Right,
  208.       TextPosition_2_Left,
  209.       TextPosition_3_Above,
  210.       TextPosition_4_Below,
  211.     };
  212.  
  213.     enum { // values for property PictDrawMode
  214.       PictDrawMode_0_As_defined,
  215.       PictDrawMode_1_Autosize_control,
  216.       PictDrawMode_2_Stretch_to_fit,
  217.     };
  218.  
  219.     enum { // values for property BorderStyle
  220.       BorderStyle_0_None,
  221.       BorderStyle_1_Single,
  222.     };
  223.  
  224.     enum { // values for property ClickFilter
  225.       ClickFilter_0_Anywhere,
  226.       ClickFilter_1_Text_or_Picture,
  227.       ClickFilter_2_Picture_only,
  228.       ClickFilter_3_Text_only,
  229.     };
  230.  
  231.  
  232.     // properties
  233.     BOOL GetPropCtlName(string& v) {return GetProp(0,v);}
  234.     BOOL SetPropCtlName(string& v) {return SetProp(0,v);}
  235.  
  236.     BOOL GetPropIndex(int& v) {return GetProp(1,v);}
  237.     BOOL SetPropIndex(int v) {return SetProp(1,v);}
  238.  
  239.     BOOL GetPropBackColor(COLORREF& v) {return GetProp(2,v);}
  240.     BOOL SetPropBackColor(COLORREF v) {return SetProp(2,v);}
  241.  
  242.     BOOL GetPropForeColor(COLORREF& v) {return GetProp(3,v);}
  243.     BOOL SetPropForeColor(COLORREF v) {return SetProp(3,v);}
  244.  
  245.     BOOL GetPropLeft(long& v) {return GetProp(4,v);}
  246.     BOOL SetPropLeft(long v) {return SetProp(4,v);}
  247.  
  248.     BOOL GetPropTop(long& v) {return GetProp(5,v);}
  249.     BOOL SetPropTop(long v) {return SetProp(5,v);}
  250.  
  251.     BOOL GetPropWidth(long& v) {return GetProp(6,v);}
  252.     BOOL SetPropWidth(long v) {return SetProp(6,v);}
  253.  
  254.     BOOL GetPropHeight(long& v) {return GetProp(7,v);}
  255.     BOOL SetPropHeight(long v) {return SetProp(7,v);}
  256.  
  257.     BOOL GetPropEnabled(BOOL& v) {return GetProp(8,v);}
  258.     BOOL SetPropEnabled(BOOL v) {return SetProp(8,v);}
  259.  
  260.     BOOL GetPropVisible(BOOL& v) {return GetProp(9,v);}
  261.     BOOL SetPropVisible(BOOL v) {return SetProp(9,v);}
  262.  
  263.     BOOL GetPropMousePointer(ENUM& v) {return GetProp(10,v);}
  264.     BOOL SetPropMousePointer(ENUM v) {return SetProp(10,v);}
  265.  
  266.     BOOL GetPropCaption(string& v) {return GetProp(11,v);}
  267.     BOOL SetPropCaption(string& v) {return SetProp(11,v);}
  268.  
  269.     BOOL GetPropFontName(string& v) {return GetProp(12,v);}
  270.     BOOL SetPropFontName(string& v) {return SetProp(12,v);}
  271.  
  272.     BOOL GetPropFontBold(BOOL& v) {return GetProp(13,v);}
  273.     BOOL SetPropFontBold(BOOL v) {return SetProp(13,v);}
  274.  
  275.     BOOL GetPropFontItalic(BOOL& v) {return GetProp(14,v);}
  276.     BOOL SetPropFontItalic(BOOL v) {return SetProp(14,v);}
  277.  
  278.     BOOL GetPropFontStrikethru(BOOL& v) {return GetProp(15,v);}
  279.     BOOL SetPropFontStrikethru(BOOL v) {return SetProp(15,v);}
  280.  
  281.     BOOL GetPropFontUnderline(BOOL& v) {return GetProp(16,v);}
  282.     BOOL SetPropFontUnderline(BOOL v) {return SetProp(16,v);}
  283.  
  284.     BOOL GetPropFontSize(float& v) {return GetProp(17,v);}
  285.     BOOL SetPropFontSize(float v) {return SetProp(17,v);}
  286.  
  287.     BOOL GetPropTabIndex(int& v) {return GetProp(18,v);}
  288.     BOOL SetPropTabIndex(int v) {return SetProp(18,v);}
  289.  
  290.     BOOL GetPropParent(int& v) {return GetProp(19,v);}
  291.     BOOL SetPropParent(int v) {return SetProp(19,v);}
  292.  
  293.     BOOL GetPropDragMode(ENUM& v) {return GetProp(20,v);}
  294.     BOOL SetPropDragMode(ENUM v) {return SetProp(20,v);}
  295.  
  296.     BOOL GetPropDragIcon(HPIC& v) {return GetProp(21,v);}
  297.     BOOL SetPropDragIcon(HPIC v) {return SetProp(21,v);}
  298.  
  299.     BOOL GetPropTabStop(BOOL& v) {return GetProp(22,v);}
  300.     BOOL SetPropTabStop(BOOL v) {return SetProp(22,v);}
  301.  
  302.     BOOL GetPropTag(string& v) {return GetProp(23,v);}
  303.     BOOL SetPropTag(string& v) {return SetProp(23,v);}
  304.  
  305.     BOOL GetPropFrame(int& v) {return GetProp(24,v);}
  306.     BOOL SetPropFrame(int v) {return SetProp(24,v);}
  307.  
  308.     BOOL GetPropPicture(HPIC& v) {return GetProp(25,v);}
  309.     BOOL SetPropPicture(HPIC v) {return SetProp(25,v);}
  310.  
  311.     BOOL GetPropCycle(ENUM& v) {return GetProp(26,v);}
  312.     BOOL SetPropCycle(ENUM v) {return SetProp(26,v);}
  313.  
  314.     BOOL GetPropValue(int& v) {return GetProp(27,v);}
  315.     BOOL SetPropValue(int v) {return SetProp(27,v);}
  316.  
  317.     BOOL GetPropTextXpos(int& v) {return GetProp(28,v);}
  318.     BOOL SetPropTextXpos(int v) {return SetProp(28,v);}
  319.  
  320.     BOOL GetPropTextYpos(int& v) {return GetProp(29,v);}
  321.     BOOL SetPropTextYpos(int v) {return SetProp(29,v);}
  322.  
  323.     BOOL GetPropTextPosition(ENUM& v) {return GetProp(30,v);}
  324.     BOOL SetPropTextPosition(ENUM v) {return SetProp(30,v);}
  325.  
  326.     BOOL GetPropPictureXpos(int& v) {return GetProp(31,v);}
  327.     BOOL SetPropPictureXpos(int v) {return SetProp(31,v);}
  328.  
  329.     BOOL GetPropPictureYpos(int& v) {return GetProp(32,v);}
  330.     BOOL SetPropPictureYpos(int v) {return SetProp(32,v);}
  331.  
  332.     BOOL GetPropPictDrawMode(ENUM& v) {return GetProp(33,v);}
  333.     BOOL SetPropPictDrawMode(ENUM v) {return SetProp(33,v);}
  334.  
  335.     BOOL GetPropSpeed(int& v) {return GetProp(34,v);}
  336.     BOOL SetPropSpeed(int v) {return SetProp(34,v);}
  337.  
  338.     BOOL GetPropCCBfileLoad(string& v) {return GetProp(35,v);}
  339.     BOOL SetPropCCBfileLoad(string& v) {return SetProp(35,v);}
  340.  
  341.     BOOL GetPropCCBfileSave(string& v) {return GetProp(36,v);}
  342.     BOOL SetPropCCBfileSave(string& v) {return SetProp(36,v);}
  343.  
  344.     BOOL GetPropBorderStyle(ENUM& v) {return GetProp(37,v);}
  345.     BOOL SetPropBorderStyle(ENUM v) {return SetProp(37,v);}
  346.  
  347.     BOOL GetPropAbout(string& v) {return GetProp(38,v);}
  348.     BOOL SetPropAbout(string& v) {return SetProp(38,v);}
  349.  
  350.     BOOL GetPropClickFilter(ENUM& v) {return GetProp(39,v);}
  351.     BOOL SetPropClickFilter(ENUM v) {return SetProp(39,v);}
  352.  
  353.     BOOL GetPropSpecialOp(long& v) {return GetProp(40,v);}
  354.     BOOL SetPropSpecialOp(long v) {return SetProp(40,v);}
  355.  
  356.     BOOL GetPropButtonVersion(int& v) {return GetProp(41,v);}
  357.     BOOL SetPropButtonVersion(int v) {return SetProp(41,v);}
  358.  
  359.     BOOL GetPropClearFirst(BOOL& v) {return GetProp(42,v);}
  360.     BOOL SetPropClearFirst(BOOL v) {return SetProp(42,v);}
  361.  
  362.     BOOL GetPropHideFocusBox(BOOL& v) {return GetProp(43,v);}
  363.     BOOL SetPropHideFocusBox(BOOL v) {return SetProp(43,v);}
  364.  
  365. #if 0
  366.   DECLARE_RESPONSE_TABLE(TVbxAniPushButton);
  367. #endif
  368. };
  369.  
  370. #if 0
  371. // OWL response table
  372. DEFINE_RESPONSE_TABLE1(TVbxAniPushButton, TVbxControl)
  373.   EV_VBXEVENTINDEX( IDC_AniPushButton, Event_AniPushButton_Click, EvClick ),
  374.   EV_VBXEVENTINDEX( IDC_AniPushButton, Event_AniPushButton_DragDrop, EvDragDrop ),
  375.   EV_VBXEVENTINDEX( IDC_AniPushButton, Event_AniPushButton_DragOver, EvDragOver ),
  376.   EV_VBXEVENTINDEX( IDC_AniPushButton, Event_AniPushButton_GotFocus, EvGotFocus ),
  377.   EV_VBXEVENTINDEX( IDC_AniPushButton, Event_AniPushButton_KeyDown, EvKeyDown ),
  378.   EV_VBXEVENTINDEX( IDC_AniPushButton, Event_AniPushButton_KeyPress, EvKeyPress ),
  379.   EV_VBXEVENTINDEX( IDC_AniPushButton, Event_AniPushButton_KeyUp, EvKeyUp ),
  380.   EV_VBXEVENTINDEX( IDC_AniPushButton, Event_AniPushButton_LostFocus, EvLostFocus ),
  381. END_RESPONSE_TABLE;
  382. #endif
  383.  
  384. #endif
  385.  
  386.