Click here to Skip to main content
15,897,291 members
Articles / Desktop Programming / MFC

Static LED control - CDigiStatic 1.3

Rate me:
Please Sign up or sign in to vote.
4.94/5 (41 votes)
5 Oct 2002CPOL 318.7K   14.5K   186  
A control to display text or numbers with a 14 or 7 segment display.
// counterDlg.h : header file
//

#if !defined(AFX_COUNTERDLG_H__C012E028_AB9E_11D1_A717_AC9DD64C3607__INCLUDED_)
#define AFX_COUNTERDLG_H__C012E028_AB9E_11D1_A717_AC9DD64C3607__INCLUDED_

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

#include "cdxCDynamicDialog.h"
//#include "BkDialogST.h"
#include "HMXDialog.h"
#include "HMXStatic.h"
#include "HMXCheckBox.h"

#include "Digiutil.h"
/////////////////////////////////////////////////////////////////////////////
// CCounterDlg dialog

class CCounterDlg : public CHMXDialog
{
// Construction
public:
	CCounterDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CCounterDlg)
	enum { IDD = IDD_COUNTER_DIALOG };
	CHMXCheckBox	m_PropCheck;
	CHMXCheckBox	m_TransCheck;
	CHMXCheckBox	m_SoftEdgeCheck;
	CHMXCheckBox	m_SmoothCheck;
	CHMXCheckBox	m_14RadioBtn;
	CHMXCheckBox	m_7RadioBtn;
	CHMXStatic	m_TypeTextStatic;
	CStatic	m_Frame;
	CDigiStatic	m_Text2;
	CDigiScroll	m_ScrollText;
	CDigiClock	m_TheTime;
	CDigiStatic	m_Digistring;
	BOOL	m_bSmooth;
	int		m_14Status;
	BOOL	m_bProportional;
	CString	m_LedEdit;
	BOOL	m_bTrans;
	BOOL	m_bSoftEdge;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCounterDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CCounterDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSmoothCheck();
	afx_msg void On14Radio();
	afx_msg void On7Radio();
	afx_msg void OnPropCheck();
	afx_msg void OnChangeLedEdit();
	afx_msg void OnTransCheck();
	afx_msg void OnSoftEdgeCheck();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
		// Text, meters and counters...
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_COUNTERDLG_H__C012E028_AB9E_11D1_A717_AC9DD64C3607__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.

License

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


Written By
Netherlands Netherlands
Michel is from the Netherlands. I make software for my job and like to do racing games in free time.

And a good mind has to be in a healthy body. That is why I do some fitness and do not eat to much pizza.

Comments and Discussions