home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / cprog / vxbc15.zip / VXB.H < prev    next >
Text File  |  1992-03-23  |  11KB  |  229 lines

  1. /*
  2. ┌──────────────────────────────────────────────────────────────────────────┐
  3. │ vxBase xbase for Visual Basic library                                    │
  4. │ Copyright 1992 vxBase (512523 Alberta Ltd.)                              │
  5. ├────────────────┬──────┬────────────┬────────┬───────────────┬────────────┤
  6. │ SYSTEM         │ VX   │ PROGRAM ID │ VXB.H  │ CREATION DATE │  09/24/91  │
  7. ├────────────────┼──────┴────────────┴────────┴───────────────┴────────────┤
  8. │ PROGRAM TITLE  │  vxbase dynamic link lib header file                    │
  9. ├─────┬──────┬───┴┬───────────────────────────┬────────────────────────────┤
  10. │ REV │ DATE │ BY │ DESCRIPTION               │ Written by T. Orletsky     │
  11. ├─────┼──────┼────┼───────────────────────────┴────────────────────────────┤
  12. │ 001 │920307│ TO │ add functions vxInit and vxDeallocate                  │
  13. │ 002 │920313│ TO │ add function vxReplLogical                             │
  14. │ 003 │920317│ TO │ add functions vxJoinNoAuto, vxDbfDate                  │
  15. └─────┴──────┴────┴────────────────────────────────────────────────────────┘
  16. */
  17.  
  18. /* ********************************************************* */
  19. /*                 Function Prototypes                       */
  20. /*                                                           */ 
  21. /*      ensure that windows.h is included BEFORE vxb.h       */
  22. /*      vxbase.lib must be included in your make             */
  23. /*                                                           */ 
  24. /* Functions NOT defined here that are described in the      */
  25. /* vxbase manual are for Visual Basic only. They operate on  */
  26. /* VB controls included in the Microsoft CDK VB API lib.     */ 
  27. /*                                                           */ 
  28. /* ********************************************************* */
  29.  
  30.    int    FAR  PASCAL vxAppendBlank (void);
  31.    int    FAR  PASCAL vxAppendFrom  (char *);
  32.    int    FAR  PASCAL vxAreaDbf     (char *);
  33.    int    FAR  PASCAL vxAreaNtx     (char *);
  34.    int    FAR  PASCAL vxBof         (void);
  35.    int    FAR  PASCAL vxBottom      (void);
  36.    void   FAR  PASCAL vxBrowse      (HWND, int, int, int, int, int, long, char *, long *);
  37.    void   FAR  PASCAL vxBrowseCase  (int);
  38.    void   FAR  PASCAL vxBrowsePos   (int, int, int, int);
  39.    long   FAR  PASCAL vxChar        (char *); 
  40.    int    FAR  PASCAL vxClose       (void);
  41.    int    FAR  PASCAL vxCloseAll    (void);
  42.    int    FAR  PASCAL vxCloseNtx    (int);
  43.    int    FAR  PASCAL vxCopy        (char *);
  44.    int    FAR  PASCAL vxCopyStruc   (char *);
  45.    int    FAR  PASCAL vxCreateDbf   (char *, int, char *);
  46.    int    FAR  PASCAL vxCreateNtx   (char *, char *);
  47.    void   FAR  PASCAL vxCtlGraySet  (void);
  48.    void   FAR  PASCAL vxCtlGrayReset(void);
  49.    long   FAR  PASCAL vxDateFormat  (char *);
  50.    long   FAR  PASCAL vxDateString  (char *, int);
  51.    long   FAR  PASCAL vxDbfDate     (void);
  52.    long   FAR  PASCAL vxDbfName     (void);
  53.    int    FAR  PASCAL vxDeallocate  (void);
  54.    int    FAR  PASCAL vxDecimals    (char *);
  55.    int    FAR  PASCAL vxDeleted     (void);
  56.    int    FAR  PASCAL vxDeleteRange (long, long);
  57.    int    FAR  PASCAL vxDeleteRec   (void);
  58.    long   FAR  PASCAL vxDescend     (char *);
  59.    void   FAR  PASCAL vxDouble      (char *, double *);
  60.    int    FAR  PASCAL vxEmpty       (char *);
  61.    int    FAR  PASCAL vxEof         (void);
  62.    void   FAR  PASCAL vxExactOff    (void);
  63.    void   FAR  PASCAL vxExactOn     (void);
  64.    long   FAR  PASCAL vxField       (char *); 
  65.    int    FAR  PASCAL vxFieldCount  (void);
  66.    long   FAR  PASCAL vxFieldName   (int);
  67.    int    FAR  PASCAL vxFieldSize   (char *);
  68.    long   FAR  PASCAL vxFieldType   (char *);
  69.    int    FAR  PASCAL vxFile        (char *);
  70.    void   FAR  PASCAL vxFilter      (char *);
  71.    void   FAR  PASCAL vxFilterReset (void);
  72.    void   FAR  PASCAL vxFormFrame   (HWND);
  73.    int    FAR  PASCAL vxFound       (void);
  74.    int    FAR  PASCAL vxGo          (long);
  75.    void   FAR  PASCAL vxInit        (void);
  76.    int    FAR  PASCAL vxInteger     (char *);
  77.    int    FAR  PASCAL vxIsMemo      (char *);
  78.    int    FAR  PASCAL vxIsRecLocked (void);
  79.    void   FAR  PASCAL vxJoin        (int, int, char *, int, char *);
  80.    void   FAR  PASCAL vxJoinNoAuto  (void);
  81.    void   FAR  PASCAL vxJoinReset   (void);
  82.    int    FAR  PASCAL vxLockDbf     (void);
  83.    int    FAR  PASCAL vxLocked      (void);
  84.    int    FAR  PASCAL vxLockRecord  (void);
  85.    long   FAR  PASCAL vxLong        (char *);
  86.    void   FAR  PASCAL vxMemoEdit    (HWND, char *);
  87.    long   FAR  PASCAL vxMemoRead    (char *, int);
  88.    void   FAR  PASCAL vxMenuDeclare (int);
  89.    void   FAR  PASCAL vxMenuItem    (int, int, char *, int);
  90.    int    FAR  PASCAL vxNtxDeselect (void);
  91.    long   FAR  PASCAL vxNtxExpr     (int);
  92.    long   FAR  PASCAL vxNtxName     (int);
  93.    long   FAR  PASCAL vxNumRecs     (void);
  94.    int    FAR  PASCAL vxPack        (HWND);
  95.    int    FAR  PASCAL vxRecall      (void);
  96.    long   FAR  PASCAL vxRecNo       (void);
  97.    int    FAR  PASCAL vxRecord      (char *);
  98.    int    FAR  PASCAL vxRecSize     (void);
  99.    int    FAR  PASCAL vxReindex     (void);
  100.    void   FAR  PASCAL vxReplDate    (char *, char *);
  101.    void   FAR  PASCAL vxReplDouble  (char *, double *);
  102.    void   FAR  PASCAL vxReplInteger (char *, int *);
  103.    void   FAR  PASCAL vxReplLogical (char *, int);
  104.    void   FAR  PASCAL vxReplLong    (char *, long *);
  105.    int    FAR  PASCAL vxReplMemo    (char *, char *);
  106.    void   FAR  PASCAL vxReplString  (char *, char *);
  107.    int    FAR  PASCAL vxSeek        (char *);
  108.    int    FAR  PASCAL vxSeekSoft    (char *);
  109.    int    FAR  PASCAL vxSelectDbf   (int);
  110.    int    FAR  PASCAL vxSelectNtx   (int);
  111.    void   FAR  PASCAL vxSetDate     (int);
  112.    void   FAR  PASCAL vxSetErrorCaption(char *);
  113.    int    FAR  PASCAL vxSetHandles  (int);
  114.    void   FAR  PASCAL vxSetLanguage (int);
  115.    void   FAR  PASCAL vxSetString   (int);
  116.    void   FAR  PASCAL vxSetupPrinter(HWND);
  117.    int    FAR  PASCAL vxSkip        (long);
  118.    void   FAR  PASCAL vxSum         (char *, double *);
  119.    void   FAR  PASCAL vxTableDeclare(long, char *, char *, int, int, int);
  120.    void   FAR  PASCAL vxTableField  (int, char *, char *, int );
  121.    void   FAR  PASCAL vxTableReset  (void);
  122.    int    FAR  PASCAL vxTestNtx     (int);
  123.    int    FAR  PASCAL vxTop         (void);
  124.    int    FAR  PASCAL vxTrue        (char *);
  125.    int    FAR  PASCAL vxUnlock      (void);
  126.    int    FAR  PASCAL vxUseDbf      (char *);
  127.    int    FAR  PASCAL vxUseDbfRO    (char *);
  128.    int    FAR  PASCAL vxUseNtx      (char *);
  129.    void   FAR  PASCAL vxWindowDereg (HWND);
  130.    int    FAR  PASCAL vxWrite       (void);
  131.    int    FAR  PASCAL vxZap         (void);
  132.  
  133.  
  134. /* ********************************************************* */
  135. /*        c function prototypes to create 3d controls        */
  136. /*        in dialog boxes. Adapted from Ray Donahue's        */
  137. /*        three_d.dll                                        */
  138. /*        DO NOT USE VB SPECIFIC vxCtlStyle/vxCtlLength      */
  139. /* ********************************************************* */
  140.    void   FAR PASCAL      Draw3dShadow   (HWND,WORD);
  141.    void   FAR PASCAL      Draw3dBorder   (HWND,WORD,int,int);
  142.    void   FAR PASCAL      Draw3dFrame    (HWND,int);
  143.    HBRUSH FAR PASCAL      Control3dColor (HWND,WORD);
  144.  
  145. #define WM_3DPAINT      (WM_USER+100)
  146. #define INSIDE_FRAME    0
  147. #define OUTSIDE_FRAME   1
  148. #define RAISED          0
  149. #define RECESSED        1
  150. #define CREASED         2
  151. #define SHADOW          3
  152.  
  153.  
  154. /* ********************************************************* */
  155. /*        c specific functions not documented in             */
  156. /*        vxbase manual                                      */
  157. /* ********************************************************* */
  158.    void   FAR  PASCAL vxbTrim       (char *, int);
  159.   // right trim where char* is pointer to string
  160.   // and int is the string length
  161.  
  162.  
  163. /* ********************************************************* */
  164. /*                    miscellaneous definitions              */
  165. /* ********************************************************* */
  166.  
  167. /* ********************************************************* */
  168. /*      browse return values                                 */
  169. /* ********************************************************* */
  170. #define BROWSE_CLOSED  -1L
  171. #define BROWSE_EDIT    -2L
  172. #define BROWSE_ADD     -3L
  173. #define BROWSE_DELETE  -4L
  174. #define BROWSE_ERROR   -5L
  175. #define BROWSE_USER    -6L
  176.  
  177. /* ********************************************************* */
  178. /*      menu types                                           */
  179. /* ********************************************************* */
  180. #define VX_SEPBAR   2
  181. #define VX_MENUHEAD 1
  182. #define VX_RETURN   0
  183.  
  184. /* ********************************************************* */
  185. /*      date types                                           */
  186. /* ********************************************************* */
  187. #define VX_AMERICAN 0
  188. #define VX_ANSI     1
  189. #define VX_BRITISH  2
  190. #define VX_FRENCH   3
  191. #define VX_GERMAN   4
  192. #define VX_ITALIAN  5
  193. #define VX_DUTCH    6
  194. #define VX_SPANISH  7
  195.  
  196. /* language types    */
  197. /* (including above) */
  198. /* ***************** */
  199. #define VX_ENGLISH  0
  200.  
  201. /* ********************************************************* */
  202. /*         color references are defined as 0x00bbggrr        */
  203. /* ********************************************************* */
  204. #define VX_RED        0x000000FF
  205. #define VX_BLUE       0x00FF0000
  206. #define VX_GRAY       0x00C0C0C0
  207.  
  208. /* ********************************************************* */
  209. /*      vxTableField types                                   */
  210. /* ********************************************************* */
  211. #define VX_FIELD 0
  212. #define VX_EXPR  1
  213.  
  214. /* ********************************************************* */
  215. /*      vxBrowseCase types                                   */
  216. /* ********************************************************* */
  217. #define VX_UPPER 0
  218. #define VX_LOWER 1
  219.  
  220. /* ********************************************************* */
  221. /*      vxSetString types                                    */
  222. /* ********************************************************* */
  223. #define VX_VBSTRING 0
  224. #define VX_ASCIIZ   1
  225.  
  226. /* ********************************************************* */
  227. /*                        End Header                         */
  228. /* ********************************************************* */
  229.