home *** CD-ROM | disk | FTP | other *** search
/ BUG 4 / BUGCD1997_05.BIN / aplic / clip4win / clip4win.exe / C4W30E.HUF / INCLUDE / VBXBI.CH < prev    next >
Text File  |  1995-06-13  |  3KB  |  111 lines

  1.  
  2. #ifndef    C4W_VBXBI_CH
  3. #define    C4W_VBXBI_CH
  4.  
  5. #ifdef RC_INVOKED
  6. #undef    NO_DLL
  7. #define    NO_DLL
  8. #endif
  9.  
  10. #ifdef WORKSHOP_INVOKED
  11. #undef    NO_DLL
  12. #define    NO_DLL
  13. #endif
  14.  
  15. #ifdef RC_INVOKED
  16. #define    DLGINIT        240
  17. #else
  18. #define    RT_DLGINIT    240
  19. #endif
  20.  
  21. #ifndef    NO_DLL
  22. //#include "dll.ch"
  23. #endif    // NO_DLL
  24.  
  25. ////////////////////////////
  26. //
  27. //    Clip-4-Win VBXEVENT structure definitions
  28. //
  29. //    Copyright (C) 1994 Skelton Software, Kendal Cottage, Hillam, Leeds, UK.
  30. //    All Rights Reserved.
  31. //
  32. ////////////////////////////
  33.  
  34. #ifndef    C4W_VBXEV_CH
  35. #define    C4W_VBXEV_CH
  36.  
  37. // Array elements of aVBXEvent[], which is used with VBX controls
  38. //
  39. // (these correspond to the members of the Windows VBXEVENT structure)
  40.  
  41. #define    VBXEV_Control    1
  42. #define    VBXEV_Window    2
  43. #define    VBXEV_ID    3
  44. #define    VBXEV_EventIndex 4
  45. #define    VBXEV_EventName    5
  46. #define    VBXEV_NumParams    6
  47. #define    VBXEV_ParamList    7
  48.  
  49. #define    VBXEV_LENGTH    7    // length of array
  50.  
  51. //#define VBXEV_STRUCT_DEF  "DWORD,UINT,int,int,DWORD,int,DWORD" // for bin2a()
  52. #define    VBXEV_STRUCT_DEF  "DWORD,UINT,int,int,LPSTR,int,DWORD" // for bin2a()
  53. #define    VBXEV_BYTELEN      20    // for peek/poke
  54.  
  55. #endif    // C4W_VBXEV_CH
  56.  
  57. // property data types:
  58. #define    PDT_CSTRING    1    // HSZ (PSZ)
  59. #define    PDT_SHORT    2
  60. #define    PDT_LONG    3
  61. #define    PDT_BOOL    4
  62. #define    PDT_COLOR    5    // DWORD/COLORREF
  63. #define    PDT_ENUM    6    // only a BYTE, but treated as SHORT
  64. #define    PDT_REAL    7    // 4-byte float
  65. #define    PDT_XPOS    8    // TWIPS (long)
  66. #define    PDT_XSIZE    9    // TWIPS (long)
  67. #define    PDT_YPOS    10    // TWIPS (long)
  68. #define    PDT_YSIZE    11    // TWIPS (long)
  69. #define    PDT_PICTURE    12    // HPIC
  70. #define    PDT_BSTRING    13    // HLSTR (internal VB string)
  71.  
  72.  
  73. #ifndef    NO_DLL
  74.  
  75. // handle Clipper 10-char limit on external names
  76. #xtranslate VBXEnableDLL    =>    VBXEnaDLL
  77. #xtranslate VBXGetArrayProp    =>    VBXGetAPrp
  78. #xtranslate VBXSetArrayProp    =>    VBXSetAPrp
  79. #xtranslate VBXGetPropByName    =>    VBXGPrByName
  80. #xtranslate VBXSetPropByName    =>    VBXSPrByName
  81. #xtranslate VBXGetPropIndex    =>    VBXGPrIndex
  82. #xtranslate VBXGetPropType    =>    VBXGPrType
  83. #xtranslate VBXGetEventIndex    =>    VBXGEvIndex
  84. #xtranslate VBXGetEventName    =>    VBXGEvName
  85.  
  86. #xtranslate VBXMethodRefresh    =>    VBXMRefresh
  87. #xtranslate VBXMethodRemoveItem    =>    VBXMRemoveItem
  88.  
  89. #xtranslate VBXTwp2PixX        =>    VBXTwp2PX
  90. #xtranslate VBXTwp2PixY        =>    VBXTwp2PY
  91. #xtranslate VBXPix2TwpX        =>    VBXPix2TX
  92. #xtranslate VBXPix2TwpY        =>    VBXPix2TY
  93.  
  94. //#xtranslate VBXGetBasicStringPtr    =>    VBXStr
  95. //#xtranslate VBXGetBasicStringLength    =>    VBXStrLen
  96.  
  97. #endif    // NO_DLL
  98.  
  99.  
  100. #define    DRAG_CANCEL    0
  101. #define    DRAG_BEGIN    1
  102. #define    DRAG_END    2
  103.  
  104.  
  105. #define    PICTURE_NONE    0
  106. #define    PICTURE_BMP    1    // bitmap
  107. #define    PICTURE_MF    2    // metafile
  108. #define    PICTURE_ICO    3    // icon
  109.  
  110. #endif    // C4W_VBXBI_CH
  111.