37 lines
1.0 KiB
C++
37 lines
1.0 KiB
C++
// Barcode.h: interface for the CBarcode class.
|
|
//
|
|
// Copyright 2002 Neil Van Eps
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_BARCODE_H__C5D7FCDA_5C8F_4244_AF95_33D6FA93F8EB__INCLUDED_)
|
|
#define AFX_BARCODE_H__C5D7FCDA_5C8F_4244_AF95_33D6FA93F8EB__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
class CBarcode
|
|
{
|
|
public:
|
|
CBarcode();
|
|
void LoadData(HDC pDC, CString csMessage, unsigned int nHeight, unsigned int nNarrowBar, unsigned int nWideBar);
|
|
virtual void DrawBitmap() = 0;
|
|
virtual ~CBarcode();
|
|
long GetBarcodePixelWidth();
|
|
long GetBarcodePixelHeight();
|
|
protected:
|
|
CString m_csMessage;
|
|
HDC m_hDC;
|
|
long m_nFinalBarcodePixelWidth;
|
|
long m_nNarrowBarPixelWidth;
|
|
long m_nPixelHeight;
|
|
long m_nStartingXPixel;
|
|
long m_nStartingYPixel;
|
|
long m_nSymbology;
|
|
long m_nWideBarPixelWidth;
|
|
virtual void DrawPattern(CString csPattern) = 0;
|
|
};
|
|
|
|
#endif // !defined(AFX_BARCODE_H__C5D7FCDA_5C8F_4244_AF95_33D6FA93F8EB__INCLUDED_)
|