Bar2D2mx

int WINAPI Bar2D2mx(HDC hDCref,LPSTR bufin,LPRECT lpRect,LPHANDLE hemf);

where

hDCref is a handle to a reference device context used to generate the enhanced metafile. If this handle is passed as NULL then the current screen device context is used.

bufin is a pointer to a null-terminated string containing the barcode data. (Group 2 calls cannot include ASCII 0 in a data stream.)

lpRect is a pointer to a RECT structure that receives the rectangle enclosing the barcode in HIMETRIC units.

hemf is a pointer to a HANDLE that receives the HENMETAFILE handle. Note that it is the users responsibility to delete this enhanced metafile when no longer required.

Calls to Bar2D2mx create the barcode enhanced metafile image using the barcode data in the string pointed to by bufin and the properties specified in the embedded BARCODE2D structure, and the reference hDCref (which may be NULL) is used in the creation of the enhanced metafile; the enhanced metafile handle is placed in hemf and the rectangle containing the image (in HIMETRIC units) is placed in the RECT structure pointed to by lpRect. The call returns an error code in the event of an error, otherwise it returns 0.

 

More:

Bar2D2b