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

  1. //--------------------------------------------------------
  2. // MHCD2001.H generated from MHCD200.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. // MhCardDeck (VB1)
  12. //--------------------------------------------------------
  13.  
  14. // properties
  15. #define Prop_MhCardDeck_CtlName 0
  16. #define Prop_MhCardDeck_Index 1
  17. #define Prop_MhCardDeck_Left 2
  18. #define Prop_MhCardDeck_Top 3
  19. #define Prop_MhCardDeck_Width 4
  20. #define Prop_MhCardDeck_Height 5
  21. #define Prop_MhCardDeck_Enabled 6
  22. #define Prop_MhCardDeck_Visible 7
  23. #define Prop_MhCardDeck_MousePointer 8
  24. #define Prop_MhCardDeck_TabIndex 9
  25. #define Prop_MhCardDeck_Autosize 10
  26. #define Prop_MhCardDeck_CardBack 11
  27. #define Prop_MhCardDeck_Value 12
  28. #define Prop_MhCardDeck_Suit 13
  29. #define Prop_MhCardDeck_DragIcon 14
  30. #define Prop_MhCardDeck_DragMode 15
  31. #define Prop_MhCardDeck_TabStop 16
  32. #define Prop_MhCardDeck_Tag 17
  33. #define Prop_MhCardDeck_BackColor 18
  34. #define Prop_MhCardDeck_Parent 19
  35. #define Prop_MhCardDeck_hWnd 20
  36.  
  37. // events
  38. #define Event_MhCardDeck_Change 0
  39. #define Event_MhCardDeck_Click 1
  40. #define Event_MhCardDeck_DblClick 2
  41. #define Event_MhCardDeck_DragDrop 3
  42. #define Event_MhCardDeck_DragOver 4
  43. #define Event_MhCardDeck_GotFocus 5
  44. #define Event_MhCardDeck_KeyDown 6
  45. #define Event_MhCardDeck_KeyPress 7
  46. #define Event_MhCardDeck_KeyUp 8
  47. #define Event_MhCardDeck_LostFocus 9
  48. #define Event_MhCardDeck_MouseDown 10
  49. #define Event_MhCardDeck_MouseMove 11
  50. #define Event_MhCardDeck_MouseUp 12
  51.  
  52. // default form data
  53. //
  54. // Some VBX controls do not operate correctly when created without
  55. // a form file.  This occurs when a program creates a control
  56. // dynamically rather than as part of a dialog resource.  If this
  57. // control exhibits problems in this mode, try creating it with the
  58. // following form data:
  59. //
  60. // For OWL programs:
  61. //
  62. //   TVbxMhCardDeck* c = new TVbxMhCardDeck(..., sizeof(MhCardDeckData), MhCardDeckData);
  63. //
  64. // For C/C++ programs:
  65. //
  66. //   HFORMFILE file = VBXCreateFormFile(sizeof(MhCardDeckData), MhCardDeckData);
  67. //   HCTL c = VBXCreate(..., file);
  68. //   VBXDeleteFormFile(file);
  69. //
  70. // Note that the VBXGEN_DATA or MhCardDeck_DATA symbol must be
  71. // defined in order to use the default form data.
  72. //
  73. extern BYTE MhCardDeckData[37L];
  74. #if defined(VBXGEN_DATA) || defined(MhCardDeck_DATA)
  75.   BYTE MhCardDeckData[37L]={
  76.     0x01,0x00,0x00,0x02,0x06,0xff,0xff,0x07,
  77.     0xff,0xff,0x08,0x00,0x09,0x00,0x00,0x0a,
  78.     0xff,0xff,0x0b,0x00,0x0c,0x00,0x0d,0x00,
  79.     0x0f,0x00,0x10,0x00,0x00,0x11,0x00,0x12,
  80.     0xff,0xff,0xff,0x00,0xff,
  81.   };
  82. #endif
  83.  
  84. #ifdef __OWL_VBXCTL_H
  85.  
  86. // OWL class
  87. class TVbxMhCardDeck : public TVbxControl {
  88.   public:
  89.  
  90.     // constructors
  91.     TVbxMhCardDeck(TWindow* parent, int id, LPCSTR title,
  92.         int x, int y, int w, int h,
  93.         long initLen=0, void far* initData=0, TModule* module=0) :
  94.       TVbxControl(parent, id, "MHCD200.VBX", "MhCardDeck",
  95.           title, x, y, w, h, initLen, initData, module) {}
  96.  
  97.     TVbxMhCardDeck(TWindow* parent, int resourceId, TModule* module=0) :
  98.         TVbxControl(parent, resourceId, module) {}
  99.  
  100. #if 0
  101.     // event handlers
  102.     void EvChange(VBXEVENT FAR*)
  103.     {
  104.       // no arguments
  105.     }
  106.  
  107.     void EvClick(VBXEVENT FAR*)
  108.     {
  109.       // no arguments
  110.     }
  111.  
  112.     void EvDblClick(VBXEVENT FAR*)
  113.     {
  114.       // no arguments
  115.     }
  116.  
  117.     void EvDragDrop(VBXEVENT FAR*)
  118.     {
  119.       // Source As Control,X As Integer,Y As Integer
  120.     }
  121.  
  122.     void EvDragOver(VBXEVENT FAR*)
  123.     {
  124.       // Source As Control,X As Integer,Y As Integer,State As Integer
  125.     }
  126.  
  127.     void EvGotFocus(VBXEVENT FAR*)
  128.     {
  129.       // no arguments
  130.     }
  131.  
  132.     void EvKeyDown(VBXEVENT FAR*)
  133.     {
  134.       // KeyCode As Integer,Shift As Integer
  135.     }
  136.  
  137.     void EvKeyPress(VBXEVENT FAR*)
  138.     {
  139.       // KeyAscii As Integer
  140.     }
  141.  
  142.     void EvKeyUp(VBXEVENT FAR*)
  143.     {
  144.       // KeyCode As Integer,Shift As Integer
  145.     }
  146.  
  147.     void EvLostFocus(VBXEVENT FAR*)
  148.     {
  149.       // no arguments
  150.     }
  151.  
  152.     void EvMouseDown(VBXEVENT FAR*)
  153.     {
  154.       // Button As Integer,Shift As Integer,X As Integer,Y As Integer
  155.     }
  156.  
  157.     void EvMouseMove(VBXEVENT FAR*)
  158.     {
  159.       // Button As Integer,Shift As Integer,X As Integer,Y As Integer
  160.     }
  161.  
  162.     void EvMouseUp(VBXEVENT FAR*)
  163.     {
  164.       // Button As Integer,Shift As Integer,X As Integer,Y As Integer
  165.     }
  166.  
  167. #endif
  168.  
  169.     // enumerations
  170.     enum { // values for property MousePointer
  171.       MousePointer_0_Default,
  172.       MousePointer_1_Arrow,
  173.       MousePointer_2_Cross,
  174.       MousePointer_3_IBeam,
  175.       MousePointer_4_Icon,
  176.       MousePointer_5_Size,
  177.       MousePointer_6_Size_NE_SW,
  178.       MousePointer_7_Size_NS,
  179.       MousePointer_8_Size_NW_SE,
  180.       MousePointer_9_Size_WE,
  181.       MousePointer_10_Up_Arrow,
  182.       MousePointer_11_Hourglass,
  183.       MousePointer_12_No_Drop,
  184.     };
  185.  
  186.     enum { // values for property CardBack
  187.       CardBack_0_Red_Checks,
  188.       CardBack_1_Blue_Checks,
  189.       CardBack_2_Red_Hatch,
  190.       CardBack_3_Blue_Hatch,
  191.       CardBack_4_Robot,
  192.       CardBack_5_Roses,
  193.       CardBack_6_Leaves_1,
  194.       CardBack_7_Leaves_2,
  195.       CardBack_8_Fish,
  196.       CardBack_9_Conch,
  197.       CardBack_10_Castle,
  198.       CardBack_11_Beach,
  199.       CardBack_12_Hand,
  200.     };
  201.  
  202.     enum { // values for property Value
  203.       Value_0_Back,
  204.       Value_1_Ace,
  205.       Value_2_Duece,
  206.       Value_3_Three,
  207.       Value_4_Four,
  208.       Value_5_Five,
  209.       Value_6_Six,
  210.       Value_7_Seven,
  211.       Value_8_Eight,
  212.       Value_9_Nine,
  213.       Value_10_Ten,
  214.       Value_11_Jack,
  215.       Value_12_Queen,
  216.       Value_13_King,
  217.     };
  218.  
  219.     enum { // values for property Suit
  220.       Suit_0_Clubs,
  221.       Suit_1_Diamonds,
  222.       Suit_2_Hearts,
  223.       Suit_3_Spades,
  224.     };
  225.  
  226.     enum { // values for property DragMode
  227.       DragMode_0_Manual,
  228.       DragMode_1_Automatic,
  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 GetPropLeft(long& v) {return GetProp(2,v);}
  240.     BOOL SetPropLeft(long v) {return SetProp(2,v);}
  241.  
  242.     BOOL GetPropTop(long& v) {return GetProp(3,v);}
  243.     BOOL SetPropTop(long v) {return SetProp(3,v);}
  244.  
  245.     BOOL GetPropWidth(long& v) {return GetProp(4,v);}
  246.     BOOL SetPropWidth(long v) {return SetProp(4,v);}
  247.  
  248.     BOOL GetPropHeight(long& v) {return GetProp(5,v);}
  249.     BOOL SetPropHeight(long v) {return SetProp(5,v);}
  250.  
  251.     BOOL GetPropEnabled(BOOL& v) {return GetProp(6,v);}
  252.     BOOL SetPropEnabled(BOOL v) {return SetProp(6,v);}
  253.  
  254.     BOOL GetPropVisible(BOOL& v) {return GetProp(7,v);}
  255.     BOOL SetPropVisible(BOOL v) {return SetProp(7,v);}
  256.  
  257.     BOOL GetPropMousePointer(ENUM& v) {return GetProp(8,v);}
  258.     BOOL SetPropMousePointer(ENUM v) {return SetProp(8,v);}
  259.  
  260.     BOOL GetPropTabIndex(int& v) {return GetProp(9,v);}
  261.     BOOL SetPropTabIndex(int v) {return SetProp(9,v);}
  262.  
  263.     BOOL GetPropAutosize(BOOL& v) {return GetProp(10,v);}
  264.     BOOL SetPropAutosize(BOOL v) {return SetProp(10,v);}
  265.  
  266.     BOOL GetPropCardBack(ENUM& v) {return GetProp(11,v);}
  267.     BOOL SetPropCardBack(ENUM v) {return SetProp(11,v);}
  268.  
  269.     BOOL GetPropValue(ENUM& v) {return GetProp(12,v);}
  270.     BOOL SetPropValue(ENUM v) {return SetProp(12,v);}
  271.  
  272.     BOOL GetPropSuit(ENUM& v) {return GetProp(13,v);}
  273.     BOOL SetPropSuit(ENUM v) {return SetProp(13,v);}
  274.  
  275.     BOOL GetPropDragIcon(HPIC& v) {return GetProp(14,v);}
  276.     BOOL SetPropDragIcon(HPIC v) {return SetProp(14,v);}
  277.  
  278.     BOOL GetPropDragMode(ENUM& v) {return GetProp(15,v);}
  279.     BOOL SetPropDragMode(ENUM v) {return SetProp(15,v);}
  280.  
  281.     BOOL GetPropTabStop(BOOL& v) {return GetProp(16,v);}
  282.     BOOL SetPropTabStop(BOOL v) {return SetProp(16,v);}
  283.  
  284.     BOOL GetPropTag(string& v) {return GetProp(17,v);}
  285.     BOOL SetPropTag(string& v) {return SetProp(17,v);}
  286.  
  287.     BOOL GetPropBackColor(COLORREF& v) {return GetProp(18,v);}
  288.     BOOL SetPropBackColor(COLORREF 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 GetProphWnd(int& v) {return GetProp(20,v);}
  294.     BOOL SetProphWnd(int v) {return SetProp(20,v);}
  295.  
  296. #if 0
  297.   DECLARE_RESPONSE_TABLE(TVbxMhCardDeck);
  298. #endif
  299. };
  300.  
  301. #if 0
  302. // OWL response table
  303. DEFINE_RESPONSE_TABLE1(TVbxMhCardDeck, TVbxControl)
  304.   EV_VBXEVENTINDEX( IDC_MhCardDeck, Event_MhCardDeck_Change, EvChange ),
  305.   EV_VBXEVENTINDEX( IDC_MhCardDeck, Event_MhCardDeck_Click, EvClick ),
  306.   EV_VBXEVENTINDEX( IDC_MhCardDeck, Event_MhCardDeck_DblClick, EvDblClick ),
  307.   EV_VBXEVENTINDEX( IDC_MhCardDeck, Event_MhCardDeck_DragDrop, EvDragDrop ),
  308.   EV_VBXEVENTINDEX( IDC_MhCardDeck, Event_MhCardDeck_DragOver, EvDragOver ),
  309.   EV_VBXEVENTINDEX( IDC_MhCardDeck, Event_MhCardDeck_GotFocus, EvGotFocus ),
  310.   EV_VBXEVENTINDEX( IDC_MhCardDeck, Event_MhCardDeck_KeyDown, EvKeyDown ),
  311.   EV_VBXEVENTINDEX( IDC_MhCardDeck, Event_MhCardDeck_KeyPress, EvKeyPress ),
  312.   EV_VBXEVENTINDEX( IDC_MhCardDeck, Event_MhCardDeck_KeyUp, EvKeyUp ),
  313.   EV_VBXEVENTINDEX( IDC_MhCardDeck, Event_MhCardDeck_LostFocus, EvLostFocus ),
  314.   EV_VBXEVENTINDEX( IDC_MhCardDeck, Event_MhCardDeck_MouseDown, EvMouseDown ),
  315.   EV_VBXEVENTINDEX( IDC_MhCardDeck, Event_MhCardDeck_MouseMove, EvMouseMove ),
  316.   EV_VBXEVENTINDEX( IDC_MhCardDeck, Event_MhCardDeck_MouseUp, EvMouseUp ),
  317. END_RESPONSE_TABLE;
  318. #endif
  319.  
  320. #endif
  321.  
  322.