
SDK - HTDisplayDll.dll Manual
VC++6.0 IDE
Note:
HTHardDll.dll was compiled under VC++6.0.
WORD: unsigned short
BOOL: bool
ULONG: unsigned long
The following ifdef block is the standard way of creating macros which make exporting
from a DLL simpler. All files within this DLL are compiled with the DLL_API
symbol defined on the command line. this symbol should not be defined on any project
that uses this DLL. This way any other project whose source files include this file see
DLL_API functions as being imported from a DLL, wheras this DLL sees symbols
defined with this macro as being exported.
#ifndef DLL_API
#define DLL_API extern "C" __declspec(dllimport)
#endif
Define __stdcall:
#define WIN_API __stdcallHTDispalyDll SDK
1. Function : HTDrawGrid for draw gird
DLL_API void WINAPI HTDrawGrid(HDC hDC, //handle
int nLeft,// the left of the rect
int nTop, // the top of the rect
int nRight, // the right of the rect
int nBottom, // the bottom of the rect
USHORT nHoriGridNum, // the number of
horizontal grid
USHORT nVertGridNum,// the number of vertical
grid
USHORT nBright,// the bright of the line
USHORT IsGrid // whether draw grid scale
);
2. Function : HTDrawWaveInYT,for VC++
DLL_API void WINAPI HTDrawWaveInYT(
HDC hDC, // handle
RECT Rect, // the rect for drawing

COLORREF clrRGB,// the color of the line
USHORT nDisType,// display type : Line or Dot
short* pSrcData, // the source data for drawing
ULONG nSrcDataLen, //the source data length
ULONG nDisDataLen,// the display length data for drawing
ULONG nCenterData,// half of the source data
USHORT nDisLeverPos, //the display position (Zero Level)
double dbHorizontal,// the horizontal factor of zoom out/in
double dbVertical,// the vertical factor of zoom out/in
USHORT nYTFormat,//format: normal or scan
ULONG nScanLen// the scan data length, only invalidate in scan mode
);
3. Function : HTDrawWaveInYTVB,for VB , the same with VC HTDrawWaveInYT
DLL_API void WINAPI HTDrawWaveInYTVB(
HDC hDC,
int left,
int top,
int right,
int bottom,
USHORT R,
USHORT G,
USHORT B,
USHORT nDisType,
short* pSrcData,
ULONG nSrcDataLen,
ULONG nDisDataLen,
ULONG nCenterData,
USHORT nDisLeverPos,
double dbHorizontal,
double dbVertical,
USHORT nYTFormat,
ULONG nScanLen
);