• 大小: 22.66MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-20
  • 语言: C/C++
  • 标签: MFC  仪表盘  

资源简介

通过MFC实现的仪表显示,里面包含多种样式,由于之前做过类似东西收集了几样,感觉有两个用起来不错,有现成的仪表类,可以根据自己需要修改,很简单。

资源截图

代码片段和文件信息

// 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仪表盘\14237168MyRoundMeter\MyRoundMeter\
     目录           0  2013-05-02 08:57  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\Debug\
     文件     2076722  2009-04-02 09:54  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\Debug\DlgCHT.dll
     文件     3195904  2013-05-02 08:57  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\Debug\MyRoundMeter.bsc
     文件      135253  2013-05-02 08:57  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\Debug\MyRoundMeter.exe
     文件      330332  2013-05-02 08:57  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\Debug\MyRoundMeter.ilk
     文件       14768  2013-05-02 08:57  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\Debug\MyRoundMeter.obj
     文件     6875752  2013-05-02 08:57  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\Debug\MyRoundMeter.pch
     文件      345088  2013-05-02 08:57  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\Debug\MyRoundMeter.pdb
     文件        2784  2013-05-02 08:57  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\Debug\MyRoundMeter.res
     文件           0  2013-05-02 08:57  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\Debug\MyRoundMeter.sbr
     文件       28266  2013-05-02 08:57  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\Debug\MyRoundMeterDlg.obj
     文件           0  2013-05-02 08:57  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\Debug\MyRoundMeterDlg.sbr
     文件       76504  2013-05-02 08:57  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\Debug\RounderMeter.obj
     文件           0  2013-05-02 08:57  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\Debug\RounderMeter.sbr
     文件      105635  2013-05-02 08:57  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\Debug\StdAfx.obj
     文件     1366571  2013-05-02 08:57  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\Debug\StdAfx.sbr
     文件      214016  2013-05-05 15:12  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\Debug\vc60.idb
     文件      380928  2013-05-02 08:57  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\Debug\vc60.pdb
     目录           0  2013-05-02 08:56  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\DlgCHT\
     文件        2340  1999-11-30 08:48  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\DlgCHT\AutoFont.h
     文件        4978  2008-10-06 17:18  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\DlgCHT\CCheckSK.h
     文件        7018  2008-09-24 15:29  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\DlgCHT\CDialogCHT.h
     文件           8  2008-09-05 16:16  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\DlgCHT\DialogCHT_ext.h
     文件     2076722  2009-04-02 09:54  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\DlgCHT\DlgCHT.dll
     文件       25626  2009-04-02 09:54  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\DlgCHT\DlgCHT.lib
     文件          96  2008-09-09 16:09  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\DlgCHT\DlgCHT_ext.h
     文件        1694  2008-09-24 14:08  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\DlgCHT\MyRadioButton.h
     文件        1598  2008-09-25 14:23  VC仪表盘\14237168MyRoundMeter\MyRoundMeter\DlgCHT\Text.h
............此处省略207个文件信息

评论

共有 条评论