0% found this document useful (0 votes)
131 views2 pages

SDK Htdisplaydll en

This document provides documentation for the HTDisplayDll.dll SDK. It includes 3 functions for drawing to a device context: 1. HTDrawGrid draws a grid with horizontal and vertical lines within a given rectangle. 2. HTDrawWaveInYT draws waveform data along a Y-T axis within a rectangle, supporting different display types, zoom levels, and data formats. 3. HTDrawWaveInYTVB is identical to HTDrawWaveInYT but adapted for VB instead of VC++.

Uploaded by

paulo artur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
131 views2 pages

SDK Htdisplaydll en

This document provides documentation for the HTDisplayDll.dll SDK. It includes 3 functions for drawing to a device context: 1. HTDrawGrid draws a grid with horizontal and vertical lines within a given rectangle. 2. HTDrawWaveInYT draws waveform data along a Y-T axis within a rectangle, supporting different display types, zoom levels, and data formats. 3. HTDrawWaveInYTVB is identical to HTDrawWaveInYT but adapted for VB instead of VC++.

Uploaded by

paulo artur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

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
);

You might also like