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

  1. //--------------------------------------------------------
  2. // KNIFE1.H generated from KNIFE.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. // PicBuf (VB3)
  12. //--------------------------------------------------------
  13.  
  14. // properties
  15. #define Prop_PicBuf_CtlName 0
  16. #define Prop_PicBuf_Index 1
  17. #define Prop_PicBuf_BackColor 2
  18. #define Prop_PicBuf_Left 3
  19. #define Prop_PicBuf_Top 4
  20. #define Prop_PicBuf_Width 5
  21. #define Prop_PicBuf_Height 6
  22. #define Prop_PicBuf_Visible 7
  23. #define Prop_PicBuf_Parent 8
  24. #define Prop_PicBuf_DragMode 9
  25. #define Prop_PicBuf_DragIcon 10
  26. #define Prop_PicBuf_Tag 11
  27. #define Prop_PicBuf_BorderStyle 12
  28. #define Prop_PicBuf_Enabled 13
  29. #define Prop_PicBuf_MousePointer 14
  30. #define Prop_PicBuf_TabIndex 15
  31. #define Prop_PicBuf_TabStop 16
  32. #define Prop_PicBuf_Picture 17
  33. #define Prop_PicBuf_Bitmap 18
  34. #define Prop_PicBuf_Palette 19
  35. #define Prop_PicBuf_AutoSize 20
  36. #define Prop_PicBuf_AutoScale 21
  37. #define Prop_PicBuf_FullPicture 22
  38. #define Prop_PicBuf_Selection 23
  39. #define Prop_PicBuf_ColorDepth 24
  40. #define Prop_PicBuf_Xresolution 25
  41. #define Prop_PicBuf_Yresolution 26
  42. #define Prop_PicBuf_Xpan 27
  43. #define Prop_PicBuf_Ypan 28
  44. #define Prop_PicBuf_TopSelect 29
  45. #define Prop_PicBuf_LeftSelect 30
  46. #define Prop_PicBuf_WidthSelect 31
  47. #define Prop_PicBuf_HeightSelect 32
  48. #define Prop_PicBuf_Xorigin 33
  49. #define Prop_PicBuf_Yorigin 34
  50. #define Prop_PicBuf_AssignMode 35
  51. #define Prop_PicBuf_ResizeMode 36
  52. #define Prop_PicBuf_ZoomFactor 37
  53. #define Prop_PicBuf_ScreenPalette 38
  54. #define Prop_PicBuf_PrinterhDC 39
  55. #define Prop_PicBuf_LeftPrint 40
  56. #define Prop_PicBuf_TopPrint 41
  57. #define Prop_PicBuf_WidthPrint 42
  58. #define Prop_PicBuf_HeightPrint 43
  59. #define Prop_PicBuf_IMKVersion 44
  60. #define Prop_PicBuf_About 45
  61. #define Prop_PicBuf_hWnd 46
  62. #define Prop_PicBuf_hDC 47
  63. #define Prop_PicBuf_Image 48
  64. #define Prop_PicBuf_ZZDIB 49
  65.  
  66. // events
  67. #define Event_PicBuf_Click 0
  68. #define Event_PicBuf_Change 1
  69. #define Event_PicBuf_DblClick 2
  70. #define Event_PicBuf_DragDrop 3
  71. #define Event_PicBuf_DragOver 4
  72. #define Event_PicBuf_GotFocus 5
  73. #define Event_PicBuf_KeyDown 6
  74. #define Event_PicBuf_KeyPress 7
  75. #define Event_PicBuf_KeyUp 8
  76. #define Event_PicBuf_LostFocus 9
  77. #define Event_PicBuf_MouseDown 10
  78. #define Event_PicBuf_MouseMove 11
  79. #define Event_PicBuf_MouseUp 12
  80. #define Event_PicBuf_Paint 13
  81.  
  82. // default form data
  83. //
  84. // Some VBX controls do not operate correctly when created without
  85. // a form file.  This occurs when a program creates a control
  86. // dynamically rather than as part of a dialog resource.  If this
  87. // control exhibits problems in this mode, try creating it with the
  88. // following form data:
  89. //
  90. // For OWL programs:
  91. //
  92. //   TVbxPicBuf* c = new TVbxPicBuf(..., sizeof(PicBufData), PicBufData);
  93. //
  94. // For C/C++ programs:
  95. //
  96. //   HFORMFILE file = VBXCreateFormFile(sizeof(PicBufData), PicBufData);
  97. //   HCTL c = VBXCreate(..., file);
  98. //   VBXDeleteFormFile(file);
  99. //
  100. // Note that the VBXGEN_DATA or PicBuf_DATA symbol must be
  101. // defined in order to use the default form data.
  102. //
  103. extern BYTE PicBufData[88L];
  104. #if defined(VBXGEN_DATA) || defined(PicBuf_DATA)
  105.   BYTE PicBufData[88L]={
  106.     0x01,0x00,0x00,0x02,0xff,0xff,0xff,0x00,
  107.     0x03,0x07,0xff,0xff,0x09,0x00,0x0b,0x00,
  108.     0x0c,0x01,0x0d,0xff,0xff,0x0e,0x00,0x0f,
  109.     0x00,0x00,0x10,0x00,0x00,0x14,0x00,0x00,
  110.     0x15,0x00,0x00,0x1b,0x00,0x00,0x1c,0x00,
  111.     0x00,0x1d,0x00,0x00,0x1e,0x00,0x00,0x1f,
  112.     0x00,0x00,0x20,0x00,0x00,0x21,0x00,0x00,
  113.     0x22,0x00,0x00,0x23,0x00,0x24,0x00,0x25,
  114.     0x00,0x00,0x80,0x3f,0x26,0x00,0x00,0x27,
  115.     0x28,0x00,0x00,0x29,0x00,0x00,0x2a,0x00,
  116.     0x00,0x2b,0x00,0x00,0x31,0x00,0x00,0xff,
  117.     
  118.   };
  119. #endif
  120.  
  121. #ifdef __OWL_VBXCTL_H
  122.  
  123. // OWL class
  124. class TVbxPicBuf : public TVbxControl {
  125.   public:
  126.  
  127.     // constructors
  128.     TVbxPicBuf(TWindow* parent, int id, LPCSTR title,
  129.         int x, int y, int w, int h,
  130.         long initLen=0, void far* initData=0, TModule* module=0) :
  131.       TVbxControl(parent, id, "KNIFE.VBX", "PicBuf",
  132.           title, x, y, w, h, initLen, initData, module) {}
  133.  
  134.     TVbxPicBuf(TWindow* parent, int resourceId, TModule* module=0) :
  135.         TVbxControl(parent, resourceId, module) {}
  136.  
  137. #if 0
  138.     // event handlers
  139.     void EvClick(VBXEVENT FAR*)
  140.     {
  141.       // no arguments
  142.     }
  143.  
  144.     void EvChange(VBXEVENT FAR*)
  145.     {
  146.       // no arguments
  147.     }
  148.  
  149.     void EvDblClick(VBXEVENT FAR*)
  150.     {
  151.       // no arguments
  152.     }
  153.  
  154.     void EvDragDrop(VBXEVENT FAR*)
  155.     {
  156.       // Source As Control,X As Integer,Y As Integer
  157.     }
  158.  
  159.     void EvDragOver(VBXEVENT FAR*)
  160.     {
  161.       // Source As Control,X As Integer,Y As Integer,State As Integer
  162.     }
  163.  
  164.     void EvGotFocus(VBXEVENT FAR*)
  165.     {
  166.       // no arguments
  167.     }
  168.  
  169.     void EvKeyDown(VBXEVENT FAR*)
  170.     {
  171.       // KeyCode As Integer,Shift As Integer
  172.     }
  173.  
  174.     void EvKeyPress(VBXEVENT FAR*)
  175.     {
  176.       // KeyAscii As Integer
  177.     }
  178.  
  179.     void EvKeyUp(VBXEVENT FAR*)
  180.     {
  181.       // KeyCode As Integer,Shift As Integer
  182.     }
  183.  
  184.     void EvLostFocus(VBXEVENT FAR*)
  185.     {
  186.       // no arguments
  187.     }
  188.  
  189.     void EvMouseDown(VBXEVENT FAR*)
  190.     {
  191.       // Button As Integer,Shift As Integer,X As Integer,Y As Integer
  192.     }
  193.  
  194.     void EvMouseMove(VBXEVENT FAR*)
  195.     {
  196.       // Button As Integer,Shift As Integer,X As Integer,Y As Integer
  197.     }
  198.  
  199.     void EvMouseUp(VBXEVENT FAR*)
  200.     {
  201.       // Button As Integer,Shift As Integer,X As Integer,Y As Integer
  202.     }
  203.  
  204.     void EvPaint(VBXEVENT FAR*)
  205.     {
  206.       // no arguments
  207.     }
  208.  
  209. #endif
  210.  
  211.     // enumerations
  212.     enum { // values for property DragMode
  213.       DragMode_0_Manual,
  214.       DragMode_1_Automatic,
  215.     };
  216.  
  217.     enum { // values for property BorderStyle
  218.       BorderStyle_0_None,
  219.       BorderStyle_1_Fixed_Single,
  220.     };
  221.  
  222.     enum { // values for property MousePointer
  223.       MousePointer_0_Default,
  224.       MousePointer_1_Arrow,
  225.       MousePointer_2_Cross,
  226.       MousePointer_3_IBeam,
  227.       MousePointer_4_Icon,
  228.       MousePointer_5_Size,
  229.       MousePointer_6_Size_NE_SW,
  230.       MousePointer_7_Size_NS,
  231.       MousePointer_8_Size_NW_SE,
  232.       MousePointer_9_Size_WE,
  233.       MousePointer_10_Up_Arrow,
  234.       MousePointer_11_Hourglass,
  235.       MousePointer_12_No_Drop,
  236.     };
  237.  
  238.     enum { // values for property AssignMode
  239.       AssignMode_0_Total_Replacement,
  240.       AssignMode_1_Union_Composite,
  241.       AssignMode_2_Intersection_Composite,
  242.       AssignMode_3_Resize_Composite,
  243.     };
  244.  
  245.     enum { // values for property ResizeMode
  246.       ResizeMode_0_Pixels_Deleted_Fixed_Aspect,
  247.       ResizeMode_1_Pixels_Deleted_Variable_Aspect,
  248.       ResizeMode_2_Resample_Fixed_Aspect,
  249.       ResizeMode_3_Resample_Variable_Aspect,
  250.     };
  251.  
  252.  
  253.     // properties
  254.     BOOL GetPropCtlName(string& v) {return GetProp(0,v);}
  255.     BOOL SetPropCtlName(string& v) {return SetProp(0,v);}
  256.  
  257.     BOOL GetPropIndex(int& v) {return GetProp(1,v);}
  258.     BOOL SetPropIndex(int v) {return SetProp(1,v);}
  259.  
  260.     BOOL GetPropBackColor(COLORREF& v) {return GetProp(2,v);}
  261.     BOOL SetPropBackColor(COLORREF v) {return SetProp(2,v);}
  262.  
  263.     BOOL GetPropLeft(long& v) {return GetProp(3,v);}
  264.     BOOL SetPropLeft(long v) {return SetProp(3,v);}
  265.  
  266.     BOOL GetPropTop(long& v) {return GetProp(4,v);}
  267.     BOOL SetPropTop(long v) {return SetProp(4,v);}
  268.  
  269.     BOOL GetPropWidth(long& v) {return GetProp(5,v);}
  270.     BOOL SetPropWidth(long v) {return SetProp(5,v);}
  271.  
  272.     BOOL GetPropHeight(long& v) {return GetProp(6,v);}
  273.     BOOL SetPropHeight(long v) {return SetProp(6,v);}
  274.  
  275.     BOOL GetPropVisible(BOOL& v) {return GetProp(7,v);}
  276.     BOOL SetPropVisible(BOOL v) {return SetProp(7,v);}
  277.  
  278.     BOOL GetPropParent(int& v) {return GetProp(8,v);}
  279.     BOOL SetPropParent(int v) {return SetProp(8,v);}
  280.  
  281.     BOOL GetPropDragMode(ENUM& v) {return GetProp(9,v);}
  282.     BOOL SetPropDragMode(ENUM v) {return SetProp(9,v);}
  283.  
  284.     BOOL GetPropDragIcon(HPIC& v) {return GetProp(10,v);}
  285.     BOOL SetPropDragIcon(HPIC v) {return SetProp(10,v);}
  286.  
  287.     BOOL GetPropTag(string& v) {return GetProp(11,v);}
  288.     BOOL SetPropTag(string& v) {return SetProp(11,v);}
  289.  
  290.     BOOL GetPropBorderStyle(ENUM& v) {return GetProp(12,v);}
  291.     BOOL SetPropBorderStyle(ENUM v) {return SetProp(12,v);}
  292.  
  293.     BOOL GetPropEnabled(BOOL& v) {return GetProp(13,v);}
  294.     BOOL SetPropEnabled(BOOL v) {return SetProp(13,v);}
  295.  
  296.     BOOL GetPropMousePointer(ENUM& v) {return GetProp(14,v);}
  297.     BOOL SetPropMousePointer(ENUM v) {return SetProp(14,v);}
  298.  
  299.     BOOL GetPropTabIndex(int& v) {return GetProp(15,v);}
  300.     BOOL SetPropTabIndex(int v) {return SetProp(15,v);}
  301.  
  302.     BOOL GetPropTabStop(BOOL& v) {return GetProp(16,v);}
  303.     BOOL SetPropTabStop(BOOL v) {return SetProp(16,v);}
  304.  
  305.     BOOL GetPropPicture(HPIC& v) {return GetProp(17,v);}
  306.     BOOL SetPropPicture(HPIC v) {return SetProp(17,v);}
  307.  
  308.     BOOL GetPropBitmap(int& v) {return GetProp(18,v);}
  309.     BOOL SetPropBitmap(int v) {return SetProp(18,v);}
  310.  
  311.     BOOL GetPropPalette(int& v) {return GetProp(19,v);}
  312.     BOOL SetPropPalette(int v) {return SetProp(19,v);}
  313.  
  314.     BOOL GetPropAutoSize(BOOL& v) {return GetProp(20,v);}
  315.     BOOL SetPropAutoSize(BOOL v) {return SetProp(20,v);}
  316.  
  317.     BOOL GetPropAutoScale(BOOL& v) {return GetProp(21,v);}
  318.     BOOL SetPropAutoScale(BOOL v) {return SetProp(21,v);}
  319.  
  320.     BOOL GetPropFullPicture(int& v) {return GetProp(22,v);}
  321.     BOOL SetPropFullPicture(int v) {return SetProp(22,v);}
  322.  
  323.     BOOL GetPropSelection(int& v) {return GetProp(23,v);}
  324.     BOOL SetPropSelection(int v) {return SetProp(23,v);}
  325.  
  326.     BOOL GetPropColorDepth(int& v) {return GetProp(24,v);}
  327.     BOOL SetPropColorDepth(int v) {return SetProp(24,v);}
  328.  
  329.     BOOL GetPropXresolution(int& v) {return GetProp(25,v);}
  330.     BOOL SetPropXresolution(int v) {return SetProp(25,v);}
  331.  
  332.     BOOL GetPropYresolution(int& v) {return GetProp(26,v);}
  333.     BOOL SetPropYresolution(int v) {return SetProp(26,v);}
  334.  
  335.     BOOL GetPropXpan(int& v) {return GetProp(27,v);}
  336.     BOOL SetPropXpan(int v) {return SetProp(27,v);}
  337.  
  338.     BOOL GetPropYpan(int& v) {return GetProp(28,v);}
  339.     BOOL SetPropYpan(int v) {return SetProp(28,v);}
  340.  
  341.     BOOL GetPropTopSelect(int& v) {return GetProp(29,v);}
  342.     BOOL SetPropTopSelect(int v) {return SetProp(29,v);}
  343.  
  344.     BOOL GetPropLeftSelect(int& v) {return GetProp(30,v);}
  345.     BOOL SetPropLeftSelect(int v) {return SetProp(30,v);}
  346.  
  347.     BOOL GetPropWidthSelect(int& v) {return GetProp(31,v);}
  348.     BOOL SetPropWidthSelect(int v) {return SetProp(31,v);}
  349.  
  350.     BOOL GetPropHeightSelect(int& v) {return GetProp(32,v);}
  351.     BOOL SetPropHeightSelect(int v) {return SetProp(32,v);}
  352.  
  353.     BOOL GetPropXorigin(int& v) {return GetProp(33,v);}
  354.     BOOL SetPropXorigin(int v) {return SetProp(33,v);}
  355.  
  356.     BOOL GetPropYorigin(int& v) {return GetProp(34,v);}
  357.     BOOL SetPropYorigin(int v) {return SetProp(34,v);}
  358.  
  359.     BOOL GetPropAssignMode(ENUM& v) {return GetProp(35,v);}
  360.     BOOL SetPropAssignMode(ENUM v) {return SetProp(35,v);}
  361.  
  362.     BOOL GetPropResizeMode(ENUM& v) {return GetProp(36,v);}
  363.     BOOL SetPropResizeMode(ENUM v) {return SetProp(36,v);}
  364.  
  365.     BOOL GetPropZoomFactor(float& v) {return GetProp(37,v);}
  366.     BOOL SetPropZoomFactor(float v) {return SetProp(37,v);}
  367.  
  368.     BOOL GetPropScreenPalette(BOOL& v) {return GetProp(38,v);}
  369.     BOOL SetPropScreenPalette(BOOL v) {return SetProp(38,v);}
  370.  
  371.     BOOL GetPropPrinterhDC(int& v) {return GetProp(39,v);}
  372.     BOOL SetPropPrinterhDC(int v) {return SetProp(39,v);}
  373.  
  374.     BOOL GetPropLeftPrint(int& v) {return GetProp(40,v);}
  375.     BOOL SetPropLeftPrint(int v) {return SetProp(40,v);}
  376.  
  377.     BOOL GetPropTopPrint(int& v) {return GetProp(41,v);}
  378.     BOOL SetPropTopPrint(int v) {return SetProp(41,v);}
  379.  
  380.     BOOL GetPropWidthPrint(int& v) {return GetProp(42,v);}
  381.     BOOL SetPropWidthPrint(int v) {return SetProp(42,v);}
  382.  
  383.     BOOL GetPropHeightPrint(int& v) {return GetProp(43,v);}
  384.     BOOL SetPropHeightPrint(int v) {return SetProp(43,v);}
  385.  
  386.     BOOL GetPropIMKVersion(string& v) {return GetProp(44,v);}
  387.     BOOL SetPropIMKVersion(string& v) {return SetProp(44,v);}
  388.  
  389.     BOOL GetPropAbout(string& v) {return GetProp(45,v);}
  390.     BOOL SetPropAbout(string& v) {return SetProp(45,v);}
  391.  
  392.     BOOL GetProphWnd(int& v) {return GetProp(46,v);}
  393.     BOOL SetProphWnd(int v) {return SetProp(46,v);}
  394.  
  395.     BOOL GetProphDC(int& v) {return GetProp(47,v);}
  396.     BOOL SetProphDC(int v) {return SetProp(47,v);}
  397.  
  398.     BOOL GetPropImage(HPIC& v) {return GetProp(48,v);}
  399.     BOOL SetPropImage(HPIC v) {return SetProp(48,v);}
  400.  
  401.     BOOL GetPropZZDIB(int& v) {return GetProp(49,v);}
  402.     BOOL SetPropZZDIB(int v) {return SetProp(49,v);}
  403.  
  404. #if 0
  405.   DECLARE_RESPONSE_TABLE(TVbxPicBuf);
  406. #endif
  407. };
  408.  
  409. #if 0
  410. // OWL response table
  411. DEFINE_RESPONSE_TABLE1(TVbxPicBuf, TVbxControl)
  412.   EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_Click, EvClick ),
  413.   EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_Change, EvChange ),
  414.   EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_DblClick, EvDblClick ),
  415.   EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_DragDrop, EvDragDrop ),
  416.   EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_DragOver, EvDragOver ),
  417.   EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_GotFocus, EvGotFocus ),
  418.   EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_KeyDown, EvKeyDown ),
  419.   EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_KeyPress, EvKeyPress ),
  420.   EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_KeyUp, EvKeyUp ),
  421.   EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_LostFocus, EvLostFocus ),
  422.   EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_MouseDown, EvMouseDown ),
  423.   EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_MouseMove, EvMouseMove ),
  424.   EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_MouseUp, EvMouseUp ),
  425.   EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_Paint, EvPaint ),
  426. END_RESPONSE_TABLE;
  427. #endif
  428.  
  429. #endif
  430.  
  431.