Barcode.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // Barcode.h: interface for the CBarcode class.
  2. //
  3. // Copyright 2002 Neil Van Eps
  4. //
  5. //////////////////////////////////////////////////////////////////////
  6. #if !defined(AFX_BARCODE_H__C5D7FCDA_5C8F_4244_AF95_33D6FA93F8EB__INCLUDED_)
  7. #define AFX_BARCODE_H__C5D7FCDA_5C8F_4244_AF95_33D6FA93F8EB__INCLUDED_
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11. class CBarcode
  12. {
  13. public:
  14. CBarcode();
  15. void LoadData(CString csMessage, double dNarrowBar, double dFinalHeight, HDC pDC, int nStartingXPixel, int nStartingYPixel, double dRatio = 1.0);
  16. virtual void DrawBitmap() = 0;
  17. virtual void BitmapToClipboard() = 0;
  18. virtual ~CBarcode();
  19. long GetBarcodePixelWidth();
  20. long GetBarcodePixelHeight();
  21. protected:
  22. CString m_csMessage;
  23. HDC m_hDC;
  24. long m_nFinalBarcodePixelWidth;
  25. long m_nNarrowBarPixelWidth;
  26. long m_nPixelHeight;
  27. long m_nStartingXPixel;
  28. long m_nStartingYPixel;
  29. long m_nSymbology;
  30. long m_nWideBarPixelWidth;
  31. virtual void DrawPattern(CString csPattern) = 0;
  32. };
  33. #endif // !defined(AFX_BARCODE_H__C5D7FCDA_5C8F_4244_AF95_33D6FA93F8EB__INCLUDED_)