MFC 与GDI++绘制仪表盘


用vc6.0打开
资源截图
代码片段和文件信息
// CTest3.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “CTest3.h“
#include “CTest3Dlg.h“

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

/////////////////////////////////////////////////////////////////////////////
// CCTest3App

BEGIN_MESSAGE_MAP(CCTest3App CWinApp)
//{{AFX_MSG_MAP(CCTest3App)
// 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()

/////////////////////////////////////////////////////////////////////////////
// CCTest3App construction

CCTest3App::CCTest3App()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CCTest3App object

CCTest3App theApp;

/////////////////////////////////////////////////////////////////////////////
// CCTest3App initialization

BOOL CCTest3App::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


// ULONG_PTR m_gdiplusToken;
// Gdiplus::GdiplusStartupInput gdiplusStartupInput;
// Gdiplus::GdiplusStartup(&m_gdiplusToken &gdiplusStartupInput NULL);


GdiplusStartupInput gdiplusStartupInput;
ULONG_PTR gdiplusToken;
GdiplusStartup(&gdiplusToken &gdiplusStartupInput NULL);

CCTest3Dlg 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;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      20560  2013-12-10 10:29  仪表CTest3.aps

     文件       1246  2013-12-10 14:03  仪表CTest3.clw

     文件       2361  2011-06-03 10:20  仪表CTest3.cpp

     文件       4342  2011-06-02 15:36  仪表CTest3.dsp

     文件        537  2011-06-02 14:30  仪表CTest3.dsw

     文件       1328  2011-06-03 10:19  仪表CTest3.h

     文件      82944  2013-12-10 14:03  仪表CTest3.ncb

     文件      59904  2013-12-10 14:03  仪表CTest3.opt

     文件        246  2013-12-10 11:35  仪表CTest3.plg

     文件       5237  2011-06-02 16:51  仪表CTest3.rc

     文件       4276  2011-06-03 10:20  仪表CTest3Dlg.cpp

     文件       1376  2011-06-03 10:16  仪表CTest3Dlg.h

     文件    5587968  2013-12-10 11:23  仪表DebugCTest3.bsc

     文件     147502  2013-12-10 11:23  仪表DebugCTest3.exe

     文件     382380  2013-12-10 11:23  仪表DebugCTest3.ilk

     文件      14626  2013-12-10 11:18  仪表DebugCTest3.obj

     文件    8275380  2013-12-10 11:18  仪表DebugCTest3.pch

     文件     549888  2013-12-10 11:23  仪表DebugCTest3.pdb

     文件       2516  2013-12-10 11:18  仪表DebugCTest3.res

     文件          0  2013-12-10 11:18  仪表DebugCTest3.sbr

     文件      24332  2013-12-10 11:18  仪表DebugCTest3Dlg.obj

     文件          0  2013-12-10 11:18  仪表DebugCTest3Dlg.sbr

     文件     154137  2013-12-10 11:23  仪表DebugDialControl.obj

     文件          0  2013-12-10 11:23  仪表DebugDialControl.sbr

     文件     133377  2013-12-10 11:18  仪表DebugStdAfx.obj

     文件    1632309  2013-12-10 11:18  仪表DebugStdAfx.sbr

     文件     279552  2013-12-10 11:36  仪表Debugvc60.idb

     文件     462848  2013-12-10 11:23  仪表Debugvc60.pdb

     文件      25145  2013-12-10 11:23  仪表DialControl.cpp

     文件       4354  2011-06-02 15:16  仪表DialControl.h

............此处省略46个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)