home *** CD-ROM | disk | FTP | other *** search
- //--------------------------------------------------------
- // KNIFE1.H generated from KNIFE.VBX by
- // VbxGen 1.0 - Borland International
- //--------------------------------------------------------
-
- #ifdef __OWL_OWLDEFS_H
- #include <owl\vbxctl.h>
- #endif
-
- //--------------------------------------------------------
- // PicBuf (VB3)
- //--------------------------------------------------------
-
- // properties
- #define Prop_PicBuf_CtlName 0
- #define Prop_PicBuf_Index 1
- #define Prop_PicBuf_BackColor 2
- #define Prop_PicBuf_Left 3
- #define Prop_PicBuf_Top 4
- #define Prop_PicBuf_Width 5
- #define Prop_PicBuf_Height 6
- #define Prop_PicBuf_Visible 7
- #define Prop_PicBuf_Parent 8
- #define Prop_PicBuf_DragMode 9
- #define Prop_PicBuf_DragIcon 10
- #define Prop_PicBuf_Tag 11
- #define Prop_PicBuf_BorderStyle 12
- #define Prop_PicBuf_Enabled 13
- #define Prop_PicBuf_MousePointer 14
- #define Prop_PicBuf_TabIndex 15
- #define Prop_PicBuf_TabStop 16
- #define Prop_PicBuf_Picture 17
- #define Prop_PicBuf_Bitmap 18
- #define Prop_PicBuf_Palette 19
- #define Prop_PicBuf_AutoSize 20
- #define Prop_PicBuf_AutoScale 21
- #define Prop_PicBuf_FullPicture 22
- #define Prop_PicBuf_Selection 23
- #define Prop_PicBuf_ColorDepth 24
- #define Prop_PicBuf_Xresolution 25
- #define Prop_PicBuf_Yresolution 26
- #define Prop_PicBuf_Xpan 27
- #define Prop_PicBuf_Ypan 28
- #define Prop_PicBuf_TopSelect 29
- #define Prop_PicBuf_LeftSelect 30
- #define Prop_PicBuf_WidthSelect 31
- #define Prop_PicBuf_HeightSelect 32
- #define Prop_PicBuf_Xorigin 33
- #define Prop_PicBuf_Yorigin 34
- #define Prop_PicBuf_AssignMode 35
- #define Prop_PicBuf_ResizeMode 36
- #define Prop_PicBuf_ZoomFactor 37
- #define Prop_PicBuf_ScreenPalette 38
- #define Prop_PicBuf_PrinterhDC 39
- #define Prop_PicBuf_LeftPrint 40
- #define Prop_PicBuf_TopPrint 41
- #define Prop_PicBuf_WidthPrint 42
- #define Prop_PicBuf_HeightPrint 43
- #define Prop_PicBuf_IMKVersion 44
- #define Prop_PicBuf_About 45
- #define Prop_PicBuf_hWnd 46
- #define Prop_PicBuf_hDC 47
- #define Prop_PicBuf_Image 48
- #define Prop_PicBuf_ZZDIB 49
-
- // events
- #define Event_PicBuf_Click 0
- #define Event_PicBuf_Change 1
- #define Event_PicBuf_DblClick 2
- #define Event_PicBuf_DragDrop 3
- #define Event_PicBuf_DragOver 4
- #define Event_PicBuf_GotFocus 5
- #define Event_PicBuf_KeyDown 6
- #define Event_PicBuf_KeyPress 7
- #define Event_PicBuf_KeyUp 8
- #define Event_PicBuf_LostFocus 9
- #define Event_PicBuf_MouseDown 10
- #define Event_PicBuf_MouseMove 11
- #define Event_PicBuf_MouseUp 12
- #define Event_PicBuf_Paint 13
-
- // default form data
- //
- // Some VBX controls do not operate correctly when created without
- // a form file. This occurs when a program creates a control
- // dynamically rather than as part of a dialog resource. If this
- // control exhibits problems in this mode, try creating it with the
- // following form data:
- //
- // For OWL programs:
- //
- // TVbxPicBuf* c = new TVbxPicBuf(..., sizeof(PicBufData), PicBufData);
- //
- // For C/C++ programs:
- //
- // HFORMFILE file = VBXCreateFormFile(sizeof(PicBufData), PicBufData);
- // HCTL c = VBXCreate(..., file);
- // VBXDeleteFormFile(file);
- //
- // Note that the VBXGEN_DATA or PicBuf_DATA symbol must be
- // defined in order to use the default form data.
- //
- extern BYTE PicBufData[88L];
- #if defined(VBXGEN_DATA) || defined(PicBuf_DATA)
- BYTE PicBufData[88L]={
- 0x01,0x00,0x00,0x02,0xff,0xff,0xff,0x00,
- 0x03,0x07,0xff,0xff,0x09,0x00,0x0b,0x00,
- 0x0c,0x01,0x0d,0xff,0xff,0x0e,0x00,0x0f,
- 0x00,0x00,0x10,0x00,0x00,0x14,0x00,0x00,
- 0x15,0x00,0x00,0x1b,0x00,0x00,0x1c,0x00,
- 0x00,0x1d,0x00,0x00,0x1e,0x00,0x00,0x1f,
- 0x00,0x00,0x20,0x00,0x00,0x21,0x00,0x00,
- 0x22,0x00,0x00,0x23,0x00,0x24,0x00,0x25,
- 0x00,0x00,0x80,0x3f,0x26,0x00,0x00,0x27,
- 0x28,0x00,0x00,0x29,0x00,0x00,0x2a,0x00,
- 0x00,0x2b,0x00,0x00,0x31,0x00,0x00,0xff,
-
- };
- #endif
-
- #ifdef __OWL_VBXCTL_H
-
- // OWL class
- class TVbxPicBuf : public TVbxControl {
- public:
-
- // constructors
- TVbxPicBuf(TWindow* parent, int id, LPCSTR title,
- int x, int y, int w, int h,
- long initLen=0, void far* initData=0, TModule* module=0) :
- TVbxControl(parent, id, "KNIFE.VBX", "PicBuf",
- title, x, y, w, h, initLen, initData, module) {}
-
- TVbxPicBuf(TWindow* parent, int resourceId, TModule* module=0) :
- TVbxControl(parent, resourceId, module) {}
-
- #if 0
- // event handlers
- void EvClick(VBXEVENT FAR*)
- {
- // no arguments
- }
-
- void EvChange(VBXEVENT FAR*)
- {
- // no arguments
- }
-
- void EvDblClick(VBXEVENT FAR*)
- {
- // no arguments
- }
-
- void EvDragDrop(VBXEVENT FAR*)
- {
- // Source As Control,X As Integer,Y As Integer
- }
-
- void EvDragOver(VBXEVENT FAR*)
- {
- // Source As Control,X As Integer,Y As Integer,State As Integer
- }
-
- void EvGotFocus(VBXEVENT FAR*)
- {
- // no arguments
- }
-
- void EvKeyDown(VBXEVENT FAR*)
- {
- // KeyCode As Integer,Shift As Integer
- }
-
- void EvKeyPress(VBXEVENT FAR*)
- {
- // KeyAscii As Integer
- }
-
- void EvKeyUp(VBXEVENT FAR*)
- {
- // KeyCode As Integer,Shift As Integer
- }
-
- void EvLostFocus(VBXEVENT FAR*)
- {
- // no arguments
- }
-
- void EvMouseDown(VBXEVENT FAR*)
- {
- // Button As Integer,Shift As Integer,X As Integer,Y As Integer
- }
-
- void EvMouseMove(VBXEVENT FAR*)
- {
- // Button As Integer,Shift As Integer,X As Integer,Y As Integer
- }
-
- void EvMouseUp(VBXEVENT FAR*)
- {
- // Button As Integer,Shift As Integer,X As Integer,Y As Integer
- }
-
- void EvPaint(VBXEVENT FAR*)
- {
- // no arguments
- }
-
- #endif
-
- // enumerations
- enum { // values for property DragMode
- DragMode_0_Manual,
- DragMode_1_Automatic,
- };
-
- enum { // values for property BorderStyle
- BorderStyle_0_None,
- BorderStyle_1_Fixed_Single,
- };
-
- enum { // values for property MousePointer
- MousePointer_0_Default,
- MousePointer_1_Arrow,
- MousePointer_2_Cross,
- MousePointer_3_IBeam,
- MousePointer_4_Icon,
- MousePointer_5_Size,
- MousePointer_6_Size_NE_SW,
- MousePointer_7_Size_NS,
- MousePointer_8_Size_NW_SE,
- MousePointer_9_Size_WE,
- MousePointer_10_Up_Arrow,
- MousePointer_11_Hourglass,
- MousePointer_12_No_Drop,
- };
-
- enum { // values for property AssignMode
- AssignMode_0_Total_Replacement,
- AssignMode_1_Union_Composite,
- AssignMode_2_Intersection_Composite,
- AssignMode_3_Resize_Composite,
- };
-
- enum { // values for property ResizeMode
- ResizeMode_0_Pixels_Deleted_Fixed_Aspect,
- ResizeMode_1_Pixels_Deleted_Variable_Aspect,
- ResizeMode_2_Resample_Fixed_Aspect,
- ResizeMode_3_Resample_Variable_Aspect,
- };
-
-
- // properties
- BOOL GetPropCtlName(string& v) {return GetProp(0,v);}
- BOOL SetPropCtlName(string& v) {return SetProp(0,v);}
-
- BOOL GetPropIndex(int& v) {return GetProp(1,v);}
- BOOL SetPropIndex(int v) {return SetProp(1,v);}
-
- BOOL GetPropBackColor(COLORREF& v) {return GetProp(2,v);}
- BOOL SetPropBackColor(COLORREF v) {return SetProp(2,v);}
-
- BOOL GetPropLeft(long& v) {return GetProp(3,v);}
- BOOL SetPropLeft(long v) {return SetProp(3,v);}
-
- BOOL GetPropTop(long& v) {return GetProp(4,v);}
- BOOL SetPropTop(long v) {return SetProp(4,v);}
-
- BOOL GetPropWidth(long& v) {return GetProp(5,v);}
- BOOL SetPropWidth(long v) {return SetProp(5,v);}
-
- BOOL GetPropHeight(long& v) {return GetProp(6,v);}
- BOOL SetPropHeight(long v) {return SetProp(6,v);}
-
- BOOL GetPropVisible(BOOL& v) {return GetProp(7,v);}
- BOOL SetPropVisible(BOOL v) {return SetProp(7,v);}
-
- BOOL GetPropParent(int& v) {return GetProp(8,v);}
- BOOL SetPropParent(int v) {return SetProp(8,v);}
-
- BOOL GetPropDragMode(ENUM& v) {return GetProp(9,v);}
- BOOL SetPropDragMode(ENUM v) {return SetProp(9,v);}
-
- BOOL GetPropDragIcon(HPIC& v) {return GetProp(10,v);}
- BOOL SetPropDragIcon(HPIC v) {return SetProp(10,v);}
-
- BOOL GetPropTag(string& v) {return GetProp(11,v);}
- BOOL SetPropTag(string& v) {return SetProp(11,v);}
-
- BOOL GetPropBorderStyle(ENUM& v) {return GetProp(12,v);}
- BOOL SetPropBorderStyle(ENUM v) {return SetProp(12,v);}
-
- BOOL GetPropEnabled(BOOL& v) {return GetProp(13,v);}
- BOOL SetPropEnabled(BOOL v) {return SetProp(13,v);}
-
- BOOL GetPropMousePointer(ENUM& v) {return GetProp(14,v);}
- BOOL SetPropMousePointer(ENUM v) {return SetProp(14,v);}
-
- BOOL GetPropTabIndex(int& v) {return GetProp(15,v);}
- BOOL SetPropTabIndex(int v) {return SetProp(15,v);}
-
- BOOL GetPropTabStop(BOOL& v) {return GetProp(16,v);}
- BOOL SetPropTabStop(BOOL v) {return SetProp(16,v);}
-
- BOOL GetPropPicture(HPIC& v) {return GetProp(17,v);}
- BOOL SetPropPicture(HPIC v) {return SetProp(17,v);}
-
- BOOL GetPropBitmap(int& v) {return GetProp(18,v);}
- BOOL SetPropBitmap(int v) {return SetProp(18,v);}
-
- BOOL GetPropPalette(int& v) {return GetProp(19,v);}
- BOOL SetPropPalette(int v) {return SetProp(19,v);}
-
- BOOL GetPropAutoSize(BOOL& v) {return GetProp(20,v);}
- BOOL SetPropAutoSize(BOOL v) {return SetProp(20,v);}
-
- BOOL GetPropAutoScale(BOOL& v) {return GetProp(21,v);}
- BOOL SetPropAutoScale(BOOL v) {return SetProp(21,v);}
-
- BOOL GetPropFullPicture(int& v) {return GetProp(22,v);}
- BOOL SetPropFullPicture(int v) {return SetProp(22,v);}
-
- BOOL GetPropSelection(int& v) {return GetProp(23,v);}
- BOOL SetPropSelection(int v) {return SetProp(23,v);}
-
- BOOL GetPropColorDepth(int& v) {return GetProp(24,v);}
- BOOL SetPropColorDepth(int v) {return SetProp(24,v);}
-
- BOOL GetPropXresolution(int& v) {return GetProp(25,v);}
- BOOL SetPropXresolution(int v) {return SetProp(25,v);}
-
- BOOL GetPropYresolution(int& v) {return GetProp(26,v);}
- BOOL SetPropYresolution(int v) {return SetProp(26,v);}
-
- BOOL GetPropXpan(int& v) {return GetProp(27,v);}
- BOOL SetPropXpan(int v) {return SetProp(27,v);}
-
- BOOL GetPropYpan(int& v) {return GetProp(28,v);}
- BOOL SetPropYpan(int v) {return SetProp(28,v);}
-
- BOOL GetPropTopSelect(int& v) {return GetProp(29,v);}
- BOOL SetPropTopSelect(int v) {return SetProp(29,v);}
-
- BOOL GetPropLeftSelect(int& v) {return GetProp(30,v);}
- BOOL SetPropLeftSelect(int v) {return SetProp(30,v);}
-
- BOOL GetPropWidthSelect(int& v) {return GetProp(31,v);}
- BOOL SetPropWidthSelect(int v) {return SetProp(31,v);}
-
- BOOL GetPropHeightSelect(int& v) {return GetProp(32,v);}
- BOOL SetPropHeightSelect(int v) {return SetProp(32,v);}
-
- BOOL GetPropXorigin(int& v) {return GetProp(33,v);}
- BOOL SetPropXorigin(int v) {return SetProp(33,v);}
-
- BOOL GetPropYorigin(int& v) {return GetProp(34,v);}
- BOOL SetPropYorigin(int v) {return SetProp(34,v);}
-
- BOOL GetPropAssignMode(ENUM& v) {return GetProp(35,v);}
- BOOL SetPropAssignMode(ENUM v) {return SetProp(35,v);}
-
- BOOL GetPropResizeMode(ENUM& v) {return GetProp(36,v);}
- BOOL SetPropResizeMode(ENUM v) {return SetProp(36,v);}
-
- BOOL GetPropZoomFactor(float& v) {return GetProp(37,v);}
- BOOL SetPropZoomFactor(float v) {return SetProp(37,v);}
-
- BOOL GetPropScreenPalette(BOOL& v) {return GetProp(38,v);}
- BOOL SetPropScreenPalette(BOOL v) {return SetProp(38,v);}
-
- BOOL GetPropPrinterhDC(int& v) {return GetProp(39,v);}
- BOOL SetPropPrinterhDC(int v) {return SetProp(39,v);}
-
- BOOL GetPropLeftPrint(int& v) {return GetProp(40,v);}
- BOOL SetPropLeftPrint(int v) {return SetProp(40,v);}
-
- BOOL GetPropTopPrint(int& v) {return GetProp(41,v);}
- BOOL SetPropTopPrint(int v) {return SetProp(41,v);}
-
- BOOL GetPropWidthPrint(int& v) {return GetProp(42,v);}
- BOOL SetPropWidthPrint(int v) {return SetProp(42,v);}
-
- BOOL GetPropHeightPrint(int& v) {return GetProp(43,v);}
- BOOL SetPropHeightPrint(int v) {return SetProp(43,v);}
-
- BOOL GetPropIMKVersion(string& v) {return GetProp(44,v);}
- BOOL SetPropIMKVersion(string& v) {return SetProp(44,v);}
-
- BOOL GetPropAbout(string& v) {return GetProp(45,v);}
- BOOL SetPropAbout(string& v) {return SetProp(45,v);}
-
- BOOL GetProphWnd(int& v) {return GetProp(46,v);}
- BOOL SetProphWnd(int v) {return SetProp(46,v);}
-
- BOOL GetProphDC(int& v) {return GetProp(47,v);}
- BOOL SetProphDC(int v) {return SetProp(47,v);}
-
- BOOL GetPropImage(HPIC& v) {return GetProp(48,v);}
- BOOL SetPropImage(HPIC v) {return SetProp(48,v);}
-
- BOOL GetPropZZDIB(int& v) {return GetProp(49,v);}
- BOOL SetPropZZDIB(int v) {return SetProp(49,v);}
-
- #if 0
- DECLARE_RESPONSE_TABLE(TVbxPicBuf);
- #endif
- };
-
- #if 0
- // OWL response table
- DEFINE_RESPONSE_TABLE1(TVbxPicBuf, TVbxControl)
- EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_Click, EvClick ),
- EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_Change, EvChange ),
- EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_DblClick, EvDblClick ),
- EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_DragDrop, EvDragDrop ),
- EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_DragOver, EvDragOver ),
- EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_GotFocus, EvGotFocus ),
- EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_KeyDown, EvKeyDown ),
- EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_KeyPress, EvKeyPress ),
- EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_KeyUp, EvKeyUp ),
- EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_LostFocus, EvLostFocus ),
- EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_MouseDown, EvMouseDown ),
- EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_MouseMove, EvMouseMove ),
- EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_MouseUp, EvMouseUp ),
- EV_VBXEVENTINDEX( IDC_PicBuf, Event_PicBuf_Paint, EvPaint ),
- END_RESPONSE_TABLE;
- #endif
-
- #endif
-
-