• 大小: 4.91MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-30
  • 语言: C/C++
  • 标签: mfc  画图  

资源简介

MFC画图板,可以画一些基本图形,如直线,椭圆,扇形,矩形,弦形,三角形。 可以保存为BMP的文件。

资源截图

代码片段和文件信息

// Ex_DrawBoard_WPF.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “Ex_DrawBoard_WPF.h“

#include “MainFrm.h“
#include “Ex_DrawBoard_WPFDoc.h“
#include “Ex_DrawBoard_WPFView.h“

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

/////////////////////////////////////////////////////////////////////////////
// CEx_DrawBoard_WPFApp

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

/////////////////////////////////////////////////////////////////////////////
// CEx_DrawBoard_WPFApp construction

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

/////////////////////////////////////////////////////////////////////////////
// The one and only CEx_DrawBoard_WPFApp object

CEx_DrawBoard_WPFApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CEx_DrawBoard_WPFApp initialization

BOOL CEx_DrawBoard_WPFApp::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(CEx_DrawBoard_WPFDoc)
RUNTIME_CLASS(CMainframe)       // main SDI frame window
RUNTIME_CLASS(CEx_DrawBoard_WPFView));
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;

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-01-16 11:59  Ex_DrawBoard_WPF\
     目录           0  2013-01-15 18:29  Ex_DrawBoard_WPF\Debug\
     文件     3818496  2013-01-14 15:17  Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.bsc
     文件      331867  2013-01-15 18:29  Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.exe
     文件      543560  2013-01-15 18:29  Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.ilk
     文件       23584  2013-01-13 15:54  Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.obj
     文件     7066628  2013-01-12 14:12  Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.pch
     文件      615424  2013-01-15 18:29  Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.pdb
     文件      155340  2013-01-15 18:29  Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.res
     文件           0  2013-01-13 15:54  Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.sbr
     文件       17066  2013-01-12 14:12  Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPFDoc.obj
     文件           0  2013-01-12 14:13  Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPFDoc.sbr
     文件      110328  2013-01-14 15:17  Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPFView.obj
     文件           0  2013-01-14 15:17  Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPFView.sbr
     文件       23585  2013-01-12 14:12  Ex_DrawBoard_WPF\Debug\MainFrm.obj
     文件           0  2013-01-12 14:13  Ex_DrawBoard_WPF\Debug\MainFrm.sbr
     文件       17175  2013-01-12 14:12  Ex_DrawBoard_WPF\Debug\PenWideDlg.obj
     文件           0  2013-01-12 14:13  Ex_DrawBoard_WPF\Debug\PenWideDlg.sbr
     文件        1998  2013-01-12 15:12  Ex_DrawBoard_WPF\Debug\Shape.obj
     文件           0  2013-01-12 15:12  Ex_DrawBoard_WPF\Debug\Shape.sbr
     文件      106845  2013-01-12 14:12  Ex_DrawBoard_WPF\Debug\StdAfx.obj
     文件     1388010  2013-01-12 14:12  Ex_DrawBoard_WPF\Debug\StdAfx.sbr
     文件      230400  2013-01-15 18:29  Ex_DrawBoard_WPF\Debug\vc60.idb
     文件      405504  2013-01-14 15:17  Ex_DrawBoard_WPF\Debug\vc60.pdb
     文件      197012  2013-01-15 18:29  Ex_DrawBoard_WPF\Ex_DrawBoard_WPF.aps
     文件        4341  2013-01-16 11:21  Ex_DrawBoard_WPF\Ex_DrawBoard_WPF.clw
     文件        4350  2013-01-05 11:03  Ex_DrawBoard_WPF\Ex_DrawBoard_WPF.cpp
     文件        5295  2013-01-12 15:22  Ex_DrawBoard_WPF\Ex_DrawBoard_WPF.dsp
     文件         538  2012-12-10 21:14  Ex_DrawBoard_WPF\Ex_DrawBoard_WPF.dsw
     文件        1466  2012-12-10 21:14  Ex_DrawBoard_WPF\Ex_DrawBoard_WPF.h
     文件      156672  2013-01-16 11:59  Ex_DrawBoard_WPF\Ex_DrawBoard_WPF.ncb
............此处省略26个文件信息

评论

共有 条评论