ERRCODE BCCopyToClipboardEx ( t_BarCode pBarCode,
HDC  hDC,
LONG  nWidth,
LONG  nHeight,
BOOL  fTransparent,
COLORREF  crBkCol,
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 Metafile) or WMF (Windows Metafile). 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 Windows XP are to be expected.

Note:
WINDOWS only
Parameters:
[in] pBarCode Pointer to barcode structure.
[in] hDC Device context to copy from (default: NULL).
[in] nWidth Width of barcode to copy, in pixels (of the device context).
[in] nHeight Height of barcode to copy, in pixels (of the device context).
[in] fTransparent Barcode transparent or not.
  • true: Background is not drawn
  • false: Background is drawn (using background color)
[in] crBkCol Background color (only if fTransparent == false).
[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.


© 2006 All rights reserved by TEC-IT Datenverarbeitung GmbH
Generated on Thu Dec 7 13:38:28 2006 for TEC-IT TBarCode Library 7.0.4 with doxygen 1.4.7