资源简介
简单的MFC画板,功能齐全,代码齐全,亲自编的,里面有程序代码,也有开发过程的每一步怎么操作都很清楚
代码片段和文件信息
// Graphic.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “Graphic.h“
#include “MainFrm.h“
#include “GraphicDoc.h“
#include “GraphicView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CGraphicApp
BEGIN_MESSAGE_MAP(CGraphicApp CWinApp)
//{{AFX_MSG_MAP(CGraphicApp)
ON_COMMAND(ID_APP_ABOUT OnAppAbout)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
// Standard file based document commands
ON_COMMAND(ID_FILE_NEW CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN CWinApp::OnFileOpen)
// Standard print setup command
ON_COMMAND(ID_FILE_PRINT_SETUP CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CGraphicApp construction
CGraphicApp::CGraphicApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CGraphicApp object
CGraphicApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CGraphicApp initialization
BOOL CGraphicApp::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
// Change the registry key under which our settings are stored.
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization.
SetRegistryKey(_T(“Local AppWizard-Generated Applications“));
LoadStdProfileSettings(); // Load standard INI file options (including MRU)
// Register the application‘s document templates. Document templates
// serve as the connection between documents frame windows and views.
CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CGraphicDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CGraphicView));
AddDocTemplate(pDocTemplate);
// Parse command line for standard shell commands DDE file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
// The one and only window has been initialized so show and update it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-12-14 13:58 MFC绘图\
目录 0 2014-12-14 13:42 MFC绘图\Graphic\
目录 0 2014-12-14 13:29 MFC绘图\Graphic\Debug\
文件 127071 2014-12-14 13:29 MFC绘图\Graphic\Debug\Graphic.exe
文件 386700 2014-12-14 13:29 MFC绘图\Graphic\Debug\Graphic.ilk
文件 23238 2014-12-14 13:27 MFC绘图\Graphic\Debug\Graphic.obj
文件 5502316 2014-12-11 20:44 MFC绘图\Graphic\Debug\Graphic.pch
文件 533504 2014-12-14 13:29 MFC绘图\Graphic\Debug\Graphic.pdb
文件 8972 2014-12-14 13:27 MFC绘图\Graphic\Debug\Graphic.res
文件 15007 2014-12-11 20:44 MFC绘图\Graphic\Debug\GraphicDoc.obj
文件 41497 2014-12-14 13:29 MFC绘图\Graphic\Debug\GraphicView.obj
文件 20158 2014-12-11 20:44 MFC绘图\Graphic\Debug\MainFrm.obj
文件 10648 2014-12-14 13:27 MFC绘图\Graphic\Debug\SettingDlg.obj
文件 105827 2014-12-11 20:44 MFC绘图\Graphic\Debug\StdAfx.obj
文件 222208 2014-12-14 13:29 MFC绘图\Graphic\Debug\vc60.idb
文件 372736 2014-12-14 13:29 MFC绘图\Graphic\Debug\vc60.pdb
文件 46640 2014-12-14 13:27 MFC绘图\Graphic\Graphic.aps
文件 3069 2014-12-14 13:27 MFC绘图\Graphic\Graphic.clw
文件 4227 2014-12-11 20:39 MFC绘图\Graphic\Graphic.cpp
文件 4773 2014-12-13 21:26 MFC绘图\Graphic\Graphic.dsp
文件 522 2014-12-11 20:39 MFC绘图\Graphic\Graphic.dsw
文件 1367 2014-12-11 20:39 MFC绘图\Graphic\Graphic.h
文件 74752 2014-12-14 13:42 MFC绘图\Graphic\Graphic.ncb
文件 49664 2014-12-14 13:42 MFC绘图\Graphic\Graphic.opt
文件 759 2014-12-14 13:29 MFC绘图\Graphic\Graphic.plg
文件 13215 2014-12-14 13:27 MFC绘图\Graphic\Graphic.rc
文件 1762 2014-12-11 20:39 MFC绘图\Graphic\GraphicDoc.cpp
文件 1486 2014-12-11 20:39 MFC绘图\Graphic\GraphicDoc.h
文件 10049 2014-12-14 13:36 MFC绘图\Graphic\GraphicView.cpp
文件 2493 2014-12-14 13:27 MFC绘图\Graphic\GraphicView.h
文件 2508 2014-12-11 20:39 MFC绘图\Graphic\MainFrm.cpp
............此处省略15个文件信息
- 上一篇:用MFC做的模拟时钟指针,还有日历对话框,代码很全
- 下一篇:VC 截屏或抓屏程序
评论
共有 条评论