Click here to Skip to main content
12,999,417 members (63,812 online)
Click here to Skip to main content


123 bookmarked
Posted 17 Jan 2000

An LED Style display control and bar control

, 17 Jan 2000
A control to display time, floating point numbers or integers using an LED digital-style display
// 3DBar.h: interface for the C3DBar class.

#if !defined(AFX_3DBAR_H__E77033B8_CCDE_11D3_8041_00805FC1DE10__INCLUDED_)
#define AFX_3DBAR_H__E77033B8_CCDE_11D3_8041_00805FC1DE10__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "../stdafx.h"

class C3DBar  
	void SetBarColour(COLORREF cr);
	void UpdateColours();
	void CreatePens();
	void DrawHorizontal(CDC* pDC, CRect& BarRect);

	virtual ~C3DBar();

	void DeletePens();
	COLORREF DarkenColor(const COLORREF crColor, BYTE byReduceVal);
	COLORREF LightenColor(const COLORREF crColor, BYTE byIncreaseVal);
	COLORREF m_crChannel;
	COLORREF m_crColorLight;
	COLORREF m_crColorLighter;
	COLORREF m_crColorLightest;
	COLORREF m_crColorDark;
	COLORREF m_crColorDarker;
	COLORREF m_crDkShadow;
	COLORREF m_crShadow;
	COLORREF m_crLiteShadow;

	CPen m_penColor;
	CPen m_penColorLight;
	CPen m_penColorLighter;
	CPen m_penColorDark;
	CPen m_penColorDarker;
	CPen m_penDkShadow;
	CPen m_penShadow;
	CPen m_penLiteShadow;

#endif // !defined(AFX_3DBAR_H__E77033B8_CCDE_11D3_8041_00805FC1DE10__INCLUDED_)

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.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Jason Troitsky
United Kingdom United Kingdom
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170624.1 | Last Updated 18 Jan 2000
Article Copyright 2000 by Jason Troitsky
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid