clipbrdapi.cpp File Reference

Public API functions to copy a barcode to the Windows clipboard. More...


Functions

ERRCODE BCCopyToClipboard (t_BarCode* pBarCode, LONG nWidth, LONG nHeight)
 Copies barcode to the Windows clipboard (Windows only). Copies barcode to the Windows clipboard. Call this function after BCCreate(). For Windows 95/98/ME: the used meta-file format (EMF) is not fully supported by these Windows versions. No problems for Windows 2000 or higher are to be expected.
Note:
WINDOWS only \param[in] pBarCode Pointer to barcode structure. \param[in] nWidth Width of barcode to copy in pixels (of the physical screen). \param[in] nHeight Height of barcode to copy in pixels (of the physical screen).
Return values:
ERRCODE   ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------.


ERRCODE BCCopyToClipboardExA (t_BarCode* pBarCode, HDC hDC, LONG nWidth, LONG nHeight, BOOL fTransparent, LPCSTR szFileName)
 Copies barcode to clipboard (extended version, Windows only). Like BCCopyToClipboard(). In addition, you can specify the device context, the transparency and the background color of the resulting barcode. Optional the barcode can be saved as EMF (Enhanced Meta File) or WMF (Windows meta file). The format is specified through the file extension (.emf or .wmf) of szFileName. Call this function after BCCreate(). For Windows 95/98/ME: the used meta-file format is not fully supported by these Windows versions. No problems for Windows 2000 or higher are to be expected. A file extension according to selected image type is appended automatically if the file name does not already end with a safe file extension. Safe file extensions are ".bmp", ".emf", ".eps", ".gif", ".jpg", ".jpeg", ".pcx", ".png", ".tif", and ".tmp".
Note:
WINDOWS only \param[in] pBarCode Pointer to barcode structure. \param[in] hDC Device context to copy from (default: NULL). \param[in] nWidth Width of barcode to copy, in pixels (of the device context). \param[in] nHeight Height of barcode to copy, in pixels (of the device context). \param[in] fTransparent Barcode transparent or not. - true: Background is not drawn - false: Background is drawn (using background color) \param[in] szFileName Filename the barcode should be written to (NULL for clipboard only).
Return values:
ERRCODE   ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------.


ERRCODE BCCopyToClipboardExW (t_BarCode* pBarCode, HDC hDC, LONG nWidth, LONG nHeight, BOOL fTransparent, LPCWSTR szFileName)
 Copies barcode to clipboard (extended version, Windows only). Like BCCopyToClipboard(). In addition, you can specify the device context, the transparency and the background color of the resulting barcode. Optional the barcode can be saved as EMF (Enhanced Meta File) or WMF (Windows meta file). The format is specified through the file extension (.emf or .wmf) of szFileName. Call this function after BCCreate(). For Windows 95/98/ME: the used meta-file format is not fully supported by these Windows versions. No problems for Windows 2000 or higher are to be expected. A file extension according to selected image type is appended automatically if the file name does not already end with a safe file extension. Safe file extensions are ".bmp", ".emf", ".eps", ".gif", ".jpg", ".jpeg", ".pcx", ".png", ".tif", and ".tmp".
Note:
WINDOWS only \param[in] pBarCode Pointer to barcode structure. \param[in] hDC Device context to copy from (default: NULL). \param[in] nWidth Width of barcode to copy, in pixels (of the device context). \param[in] nHeight Height of barcode to copy, in pixels (of the device context). \param[in] fTransparent Barcode transparent or not. - true: Background is not drawn - false: Background is drawn (using background color) \param[in] szFileName Filename the barcode should be written to (NULL for clipboard only).
Return values:
ERRCODE   ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------.



Detailed Description

Public API functions to copy a barcode to the Windows clipboard.

Required include file: "tbarcode.h"

Author(s):
TEC-IT Datenverarbeitung GmbH
Wagnerstr. 6, 4400 Steyr, AUSTRIA/EUROPE
https://www.tec-it.com
Copyright© by TEC-IT Datenverarbeitung GmbH


Function Documentation

ERRCODE BCCopyToClipboard ( t_BarCode * pBarCode,
LONG nWidth,
LONG nHeight )

Copies barcode to the Windows clipboard (Windows only). Copies barcode to the Windows clipboard. Call this function after BCCreate(). For Windows 95/98/ME: the used meta-file format (EMF) is not fully supported by these Windows versions. No problems for Windows 2000 or higher are to be expected.

Note:
WINDOWS only \param[in] pBarCode Pointer to barcode structure. \param[in] nWidth Width of barcode to copy in pixels (of the physical screen). \param[in] nHeight Height of barcode to copy in pixels (of the physical screen).
Return values:
ERRCODE   ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------.

ERRCODE BCCopyToClipboardExA ( t_BarCode * pBarCode,
HDC hDC,
LONG nWidth,
LONG nHeight,
BOOL fTransparent,
LPCSTR szFileName )

Copies barcode to clipboard (extended version, Windows only). Like BCCopyToClipboard(). In addition, you can specify the device context, the transparency and the background color of the resulting barcode. Optional the barcode can be saved as EMF (Enhanced Meta File) or WMF (Windows meta file). The format is specified through the file extension (.emf or .wmf) of szFileName. Call this function after BCCreate(). For Windows 95/98/ME: the used meta-file format is not fully supported by these Windows versions. No problems for Windows 2000 or higher are to be expected. A file extension according to selected image type is appended automatically if the file name does not already end with a safe file extension. Safe file extensions are ".bmp", ".emf", ".eps", ".gif", ".jpg", ".jpeg", ".pcx", ".png", ".tif", and ".tmp".

Note:
WINDOWS only \param[in] pBarCode Pointer to barcode structure. \param[in] hDC Device context to copy from (default: NULL). \param[in] nWidth Width of barcode to copy, in pixels (of the device context). \param[in] nHeight Height of barcode to copy, in pixels (of the device context). \param[in] fTransparent Barcode transparent or not. - true: Background is not drawn - false: Background is drawn (using background color) \param[in] szFileName Filename the barcode should be written to (NULL for clipboard only).
Return values:
ERRCODE   ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------.

ERRCODE BCCopyToClipboardExW ( t_BarCode * pBarCode,
HDC hDC,
LONG nWidth,
LONG nHeight,
BOOL fTransparent,
LPCWSTR szFileName )

Copies barcode to clipboard (extended version, Windows only). Like BCCopyToClipboard(). In addition, you can specify the device context, the transparency and the background color of the resulting barcode. Optional the barcode can be saved as EMF (Enhanced Meta File) or WMF (Windows meta file). The format is specified through the file extension (.emf or .wmf) of szFileName. Call this function after BCCreate(). For Windows 95/98/ME: the used meta-file format is not fully supported by these Windows versions. No problems for Windows 2000 or higher are to be expected. A file extension according to selected image type is appended automatically if the file name does not already end with a safe file extension. Safe file extensions are ".bmp", ".emf", ".eps", ".gif", ".jpg", ".jpeg", ".pcx", ".png", ".tif", and ".tmp".

Note:
WINDOWS only \param[in] pBarCode Pointer to barcode structure. \param[in] hDC Device context to copy from (default: NULL). \param[in] nWidth Width of barcode to copy, in pixels (of the device context). \param[in] nHeight Height of barcode to copy, in pixels (of the device context). \param[in] fTransparent Barcode transparent or not. - true: Background is not drawn - false: Background is drawn (using background color) \param[in] szFileName Filename the barcode should be written to (NULL for clipboard only).
Return values:
ERRCODE   ErrOk (0) in case of success. Non-zero if error occurred. ----------------------------------------------------------------------------.


© 2019 All rights reserved by TEC-IT Datenverarbeitung GmbH
Generated on Sat Jul 13 03:16:06 2019 for TBarCode Library 11 with doxygen 1.1.5