Click here to Skip to main content
15,894,540 members
Articles / Desktop Programming / MFC

An Improved Analog Meter Control

Rate me:
Please Sign up or sign in to vote.
4.76/5 (13 votes)
19 Jun 2000 209.1K   3.8K   89  
An Analog Meter Control for displaying real-time data
// DlgString.cpp : implementation file
//

#include "stdafx.h"
#include "MeterTestForm.h"
#include "DlgString.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDlgString dialog


CDlgString::CDlgString(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgString::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgString)
	m_strPrompt = _T("");
	m_strEdit = _T("");
	//}}AFX_DATA_INIT
}


void CDlgString::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgString)
	DDX_Text(pDX, IDC_STATICPROMPT, m_strPrompt);
	DDX_Text(pDX, IDC_EDIT1, m_strEdit);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgString, CDialog)
	//{{AFX_MSG_MAP(CDlgString)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgString message handlers

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 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


Written By
Software Developer (Senior) Digital Metrology Solutions, Inc.
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions