www.pudn.com > Barcode_src.zip > Code39.cpp
// Code39.cpp: implementation of the CCode39 class.
//
// Copyright 2002 Neil Van Eps
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Code39.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CCode39::CCode39()
{
// code 39
m_nSymbology = CODE39;
}
CCode39::~CCode39()
{
}
////////////////////////////////////////////////////////////////////////////////////
//
// Name:
// DrawBitmap()
//
// Description:
// draws a barcode using the previously loaded data
//
// Arguments:
// none
//
// Return:
// void
//
// Called by:
// public class interface
//
////////////////////////////////////////////////////////////////////////////////////
void CCode39::DrawBitmap()
{
int i;
CString csCurrentPattern;
// draw start character, an asterisk
DrawPattern(RetrievePattern('*'));
// draw each character in the message
for (i=0;i