5a9 #ifndef WDBII_H #define WDBII_H #include "mapplot.h" #define SHORTFLAG 0x4000 #define CBD_MAGIC 0x20770002 /* #define CBD_MAGIC 0x20770033 */ #define BIT32 int #define BIT16 short struct cbdHead { BIT32 magic; /* Magic number */ BIT32 dictAddr; /* Offset of segment dictionary in file */ BIT32 segCount; /* Number of segments in file */ BIT32 segSize; /* Size of segment dictionary */ BIT32 segMax; /* Size of largest segment's strokes, /2 */ BIT32 fill[(40 / sizeof (BIT32)) - 5]; /* Filler */ }; #if 0 struct cbdHead { long magic; /* Magic number */ long dictAddr; /* Offset of segment dictionary in file */ long segCount; /* Number of segments in file */ long segSize; /* Size of segment dictionary (bytes) */ long segMax; /* Size of largest segment's strokes, (bytes/2) */ /* the following apply to CBD_MAGIC2 only */ long maxLat, minLat, maxLong, minLong; /* Bounding box of map */ long features; /* bits indicate feature "ranks" present */ long scaleShift; /* bits to shift coordinate data */ long latOffset; /* lattitude offset */ long lngOffset; /* longitude offset */ }; #endif BOOL DrawWDBIIMap(VARS *v, HDC hdc, char *fileName, BOOL clear); void DrawWDBIIMaps(VARS *v, HDC hdc); void DoAddWDBIIMap(VARS *v, char *name); BOOL AddWDBIIMap(VARS *v); void DeleteWDBIIMaps(VARS *v); BOOL WDBIILoaded(VARS *v, char *name); #endif . 0