通过MFC实现的仪表显示,里面包含多种样式,由于之前做过类似东西收集了几样,感觉有两个用起来不错,有现成的仪表类,可以根据自己需要修改,很简单。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-05-05 16:14 VC仪表盘
目录 0 2013-05-02 08:56 VC仪表盘14237168MyRoundMeter
目录 0 2013-05-05 15:15 VC仪表盘14237168MyRoundMeterMyRoundMeter
目录 0 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebug
文件 2076722 2009-04-02 09:54 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugDlgCHT.dll
文件 3195904 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugMyRoundMeter.bsc
文件 135253 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugMyRoundMeter.exe
文件 330332 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugMyRoundMeter.ilk
文件 14768 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugMyRoundMeter.obj
文件 6875752 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugMyRoundMeter.pch
文件 345088 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugMyRoundMeter.pdb
文件 2784 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugMyRoundMeter.res
文件 0 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugMyRoundMeter.sbr
文件 28266 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugMyRoundMeterDlg.obj
文件 0 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugMyRoundMeterDlg.sbr
文件 76504 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugRounderMeter.obj
文件 0 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugRounderMeter.sbr
文件 105635 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugStdAfx.obj
文件 1366571 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugStdAfx.sbr
文件 214016 2013-05-05 15:12 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugvc60.idb
文件 380928 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugvc60.pdb
目录 0 2013-05-02 08:56 VC仪表盘14237168MyRoundMeterMyRoundMeterDlgCHT
文件 2340 1999-11-30 08:48 VC仪表盘14237168MyRoundMeterMyRoundMeterDlgCHTAutoFont.h
文件 4978 2008-10-06 17:18 VC仪表盘14237168MyRoundMeterMyRoundMeterDlgCHTCCheckSK.h
文件 7018 2008-09-24 15:29 VC仪表盘14237168MyRoundMeterMyRoundMeterDlgCHTCDialogCHT.h
文件 8 2008-09-05 16:16 VC仪表盘14237168MyRoundMeterMyRoundMeterDlgCHTDialogCHT_ext.h
文件 2076722 2009-04-02 09:54 VC仪表盘14237168MyRoundMeterMyRoundMeterDlgCHTDlgCHT.dll
文件 25626 2009-04-02 09:54 VC仪表盘14237168MyRoundMeterMyRoundMeterDlgCHTDlgCHT.lib
文件 96 2008-09-09 16:09 VC仪表盘14237168MyRoundMeterMyRoundMeterDlgCHTDlgCHT_ext.h
文件 1694 2008-09-24 14:08 VC仪表盘14237168MyRoundMeterMyRoundMeterDlgCHTMyRadioButton.h
文件 1598 2008-09-25 14:23 VC仪表盘14237168MyRoundMeterMyRoundMeterDlgCHTText.h
............此处省略207个文件信息
// MyRoundMeter.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “MyRoundMeter.h“
#include “MyRoundMeterDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMyRoundMeterApp
BEGIN_MESSAGE_MAP(CMyRoundMeterApp CWinApp)
//{{AFX_MSG_MAP(CMyRoundMeterApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMyRoundMeterApp construction
CMyRoundMeterApp::CMyRoundMeterApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CMyRoundMeterApp object
CMyRoundMeterApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CMyRoundMeterApp initialization
BOOL CMyRoundMeterApp::InitInstance()
{
AfxEnableControlContainer();
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable you should remove from the following
// the specific initialization routines you do not need.
#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
CMyRoundMeterDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
// dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
// dismissed with Cancel
}
// Since the dialog has been closed return FALSE so that we exit the
// application rather than start the application‘s message pump.
return FALSE;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-05-05 16:14 VC仪表盘
目录 0 2013-05-02 08:56 VC仪表盘14237168MyRoundMeter
目录 0 2013-05-05 15:15 VC仪表盘14237168MyRoundMeterMyRoundMeter
目录 0 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebug
文件 2076722 2009-04-02 09:54 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugDlgCHT.dll
文件 3195904 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugMyRoundMeter.bsc
文件 135253 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugMyRoundMeter.exe
文件 330332 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugMyRoundMeter.ilk
文件 14768 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugMyRoundMeter.obj
文件 6875752 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugMyRoundMeter.pch
文件 345088 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugMyRoundMeter.pdb
文件 2784 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugMyRoundMeter.res
文件 0 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugMyRoundMeter.sbr
文件 28266 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugMyRoundMeterDlg.obj
文件 0 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugMyRoundMeterDlg.sbr
文件 76504 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugRounderMeter.obj
文件 0 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugRounderMeter.sbr
文件 105635 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugStdAfx.obj
文件 1366571 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugStdAfx.sbr
文件 214016 2013-05-05 15:12 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugvc60.idb
文件 380928 2013-05-02 08:57 VC仪表盘14237168MyRoundMeterMyRoundMeterDebugvc60.pdb
目录 0 2013-05-02 08:56 VC仪表盘14237168MyRoundMeterMyRoundMeterDlgCHT
文件 2340 1999-11-30 08:48 VC仪表盘14237168MyRoundMeterMyRoundMeterDlgCHTAutoFont.h
文件 4978 2008-10-06 17:18 VC仪表盘14237168MyRoundMeterMyRoundMeterDlgCHTCCheckSK.h
文件 7018 2008-09-24 15:29 VC仪表盘14237168MyRoundMeterMyRoundMeterDlgCHTCDialogCHT.h
文件 8 2008-09-05 16:16 VC仪表盘14237168MyRoundMeterMyRoundMeterDlgCHTDialogCHT_ext.h
文件 2076722 2009-04-02 09:54 VC仪表盘14237168MyRoundMeterMyRoundMeterDlgCHTDlgCHT.dll
文件 25626 2009-04-02 09:54 VC仪表盘14237168MyRoundMeterMyRoundMeterDlgCHTDlgCHT.lib
文件 96 2008-09-09 16:09 VC仪表盘14237168MyRoundMeterMyRoundMeterDlgCHTDlgCHT_ext.h
文件 1694 2008-09-24 14:08 VC仪表盘14237168MyRoundMeterMyRoundMeterDlgCHTMyRadioButton.h
文件 1598 2008-09-25 14:23 VC仪表盘14237168MyRoundMeterMyRoundMeterDlgCHTText.h
............此处省略207个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)