TBarCode Library 11  TBarCode Library 11
DOUBLE _stdcall BCGetModuleWidth ( t_BarCode pBarCode,
LPRECT  pRectBounding,
HDC  hDC,
e_MUnit  eUnit 
)

Returns the module width.

Returns the computed module width for a given device context with respect to encoded data, check-digits, subset and other barcode parameters. You can specify the unit, which should be used for the return value.
hDC can be NULL. In this case the bounding rectangle must be specified in 1/1000 mm. The measurement units are:

  • eMUDefault ... logical units of the given device context.
  • eMUMM ... millimeters
  • eMUPixel ... pixels if device context is given, otherwise points (= 1/72 inch)
    Note:
    Call this function after BCCreate()
    Parameters:
    [in]pBarCodePointer to barcode structure.
    [in]pRectBoundingBounding rectangle.
    [in]hDCDevice context handle.
    [in]eUnitMeasurement unit.
    Return values:
    LONGModule width