TBarCode Library 11  TBarCode Library 11
Customized Drawing (Callbacks)

The standard functionality of TBarCode for drawing/saving barcodes may be customized with these call-back functions. More...

Functions

fn_DrawRow _stdcall BCGetFuncDrawRow (t_BarCode *pBarCode)
 Gets call-back function for drawing a single row of a barcode.
ERRCODE _stdcall BCSetFuncDrawRow (t_BarCode *pBarCode, fn_DrawRow fn)
 Sets the callback function for drawing a single row of a barcode.
fn_DrawBar _stdcall BCGetFuncDrawBar (t_BarCode *pBarCode)
 Gets call-back function for drawing a bar.
ERRCODE _stdcall BCSetFuncDrawBar (t_BarCode *pBarCode, fn_DrawBar fn)
 Sets call-back function for drawing the bars of a barcode.
fn_DrawColoredBar _stdcall BCGetFuncDrawColoredBar (t_BarCode *pBarCode)
 Gets call-back function for drawing a colored bar.
ERRCODE _stdcall BCSetFuncDrawColoredBar (t_BarCode *pBarCode, fn_DrawColoredBar fn)
 Sets call-back function for drawing colored bars.
fn_DrawRing _stdcall BCGetFuncDrawRing (t_BarCode *pBarCode)
 Gets call-back function for drawing a MaxiCode finder ring.
ERRCODE _stdcall BCSetFuncDrawRing (t_BarCode *pBarCode, fn_DrawRing fn)
 Sets call-back function for drawing the MaxiCode finder rings.
fn_DrawHexagon _stdcall BCGetFuncDrawHexagon (t_BarCode *pBarCode)
 Gets call-back function for drawing a MaxiCode hexagon.
ERRCODE _stdcall BCSetFuncDrawHexagon (t_BarCode *pBarCode, fn_DrawHexagon fn)
 Sets call-back function for drawing the MaxiCode finder rings.
LPVOID _stdcall BCGetCBData (t_BarCode *pBarCode)
 Gets the user-defined data that is passed to the callback functions.
VOID _stdcall BCSetCBData (t_BarCode *pBarCode, LPVOID customData)
 Sets the user-defined data that is passed to the callback functions.
ERRCODE _stdcall BCDrawCB (t_BarCode *pBarCode, HDC hDC, RECT *pRectBounding)
 Callback version of barcode draw function.
COLORREF _stdcall BCGetColorFromMetaData (t_BarCode *pBarCode, INT chMeta)
 Converts a single meta character returned by BCGetMetaData into a corresponding color value.
fn_DrawTextA _stdcall BCGetFuncDrawTextA (t_BarCode *pBarCode)
 Gets call-back function for drawing a text Returns currently adjusted function pointer.
fn_DrawTextW _stdcall BCGetFuncDrawTextW (t_BarCode *pBarCode)
 Gets call-back function for drawing a text Returns currently adjusted function pointer.
ERRCODE _stdcall BCSetFuncDrawTextA (t_BarCode *pBarCode, fn_DrawTextA fn)
 Sets call-back function for drawing the human readable text of a barcode.
ERRCODE _stdcall BCSetFuncDrawTextW (t_BarCode *pBarCode, fn_DrawTextW fn)
 Sets call-back function for drawing the human readable text of a barcode.
LPCSTR _stdcall BCGetMetaDataA (t_BarCode *pBarCode)
 Returns meta-representation of a barcode.
LPCWSTR _stdcall BCGetMetaDataW (t_BarCode *pBarCode)
 Returns meta-representation of a barcode.

Detailed Description

The standard functionality of TBarCode for drawing/saving barcodes may be customized with these call-back functions.

For simple barcode generating/barcode printing applications these call-back functions are not required.

Note:
: A valid license is required to test the callback functions. Callback functions are disabled without a valid license.
Temporary licenses for testing are available from mailto:office@tec-it.com.