Click here to Skip to main content
15,891,372 members
Articles / Programming Languages / C++

A C++ Barcode Library

Rate me:
Please Sign up or sign in to vote.
3.68/5 (21 votes)
29 Mar 2006CPOL3 min read 129.3K   12.6K   66  
An easy-to-use barcode library file for Win32 and MFC programmers
// Help.cpp: implementation of the Help class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "BarCode.h"
#include "Help.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////

void Help::DrawSignUP(CDC *pDC, int iX0, int iY0, int iX1, int iY1)
{
	pDC->MoveTo(iX0-1,	iY0);
	pDC->LineTo(iX0-20,	iY0);

	pDC->MoveTo(iX1+1,	iY0);
	pDC->LineTo(iX1+20,	iY0);

	pDC->MoveTo(iX0-1,	iY1);
	pDC->LineTo(iX0-20,	iY1);

	pDC->MoveTo(iX1+1,	iY1);
	pDC->LineTo(iX1+20,	iY1);

	//-----------------------------
	pDC->MoveTo(iX0,	iY0+1);
	pDC->LineTo(iX0,	iY0+20);

	pDC->MoveTo(iX1,	iY0+1);
	pDC->LineTo(iX1,	iY0+20);

	pDC->MoveTo(iX0,	iY1-1);
	pDC->LineTo(iX0,	iY1-20);

	pDC->MoveTo(iX1,	iY1-1);
	pDC->LineTo(iX1,	iY1-20);
}

int Help::GetValue(CEdit&ed)
{
	CString cs;
	ed.GetWindowText(cs);
	return atoi(cs);
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Australia Australia

Please visit our Download Home to obtain many interesting software for free ...


Comments and Discussions