资源简介
这是我刚工作时,老大让我们新人做的,从学习到开始做花了2个月左右(汗...),现在基本完成了,和网友分享,共同学习一下。这个画图小程序在VC6.0下开发的,能画简单的的直线,矩形和椭圆,还能书写文字,这些形状都可以拖动...欢迎大家批评,有问题告诉我哦。
o(∩_∩)o...
代码片段和文件信息
// CutePaint.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “CutePaint.h“
#include “MainFrm.h“
#include “CutePaintDoc.h“
#include “CutePaintView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCutePaintApp
BEGIN_MESSAGE_MAP(CCutePaintApp CWinApp)
//{{AFX_MSG_MAP(CCutePaintApp)
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()
/////////////////////////////////////////////////////////////////////////////
// CCutePaintApp construction
CCutePaintApp::CCutePaintApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CCutePaintApp object
CCutePaintApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CCutePaintApp initialization
BOOL CCutePaintApp::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(CCutePaintDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CCutePaintView));
AddDocTemplate(pDocTemplate);
// Enable DDE Execute open
EnableShellOpen();
RegisterShellFileTypes(TRUE);
// 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 win
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 58356 2008-11-11 21:53 CutePaint\CutePaint.aps
文件 4779 2008-11-11 22:59 CutePaint\CutePaint.clw
文件 4409 2008-10-06 11:11 CutePaint\CutePaint.cpp
文件 5331 2008-11-10 22:47 CutePaint\CutePaint.dsp
文件 541 2008-10-06 11:11 CutePaint\CutePaint.dsw
文件 1389 2008-10-06 11:11 CutePaint\CutePaint.h
文件 263168 2008-11-11 22:59 CutePaint\CutePaint.ncb
文件 68608 2008-11-11 22:59 CutePaint\CutePaint.opt
文件 1149 2008-11-11 22:59 CutePaint\CutePaint.plg
文件 16301 2008-11-11 21:53 CutePaint\CutePaint.rc
文件 701 2008-10-06 11:11 CutePaint\CutePaint.reg
文件 3761 2008-11-11 21:02 CutePaint\CutePaintDoc.cpp
文件 1803 2008-11-11 20:37 CutePaint\CutePaintDoc.h
文件 10505 2008-11-11 20:38 CutePaint\CutePaintView.cpp
文件 3064 2008-11-11 01:43 CutePaint\CutePaintView.h
文件 3322 2008-11-10 20:03 CutePaint\Graphic.cpp
文件 1653 2008-10-17 11:48 CutePaint\Graphic.h
文件 2526 2008-11-11 01:39 CutePaint\MainFrm.cpp
文件 1438 2008-11-11 01:39 CutePaint\MainFrm.h
文件 2527 2008-11-11 22:56 CutePaint\PropertyDlg.cpp
文件 1337 2008-11-11 22:15 CutePaint\PropertyDlg.h
文件 4676 2008-10-06 11:11 CutePaint\ReadMe.txt
目录 0 2008-11-12 15:08 CutePaint\res\
文件 3262 2008-10-17 13:28 CutePaint\res\1203.cur
文件 3262 2008-10-17 13:28 CutePaint\res\1205.cur
文件 1078 2008-10-06 11:11 CutePaint\res\CutePaint.ico
文件 401 2008-10-06 11:11 CutePaint\res\CutePaint.rc2
文件 1078 2008-10-06 11:11 CutePaint\res\CutePaintDoc.ico
文件 1678 2008-11-03 23:27 CutePaint\res\Toolbar.bmp
文件 1656 2008-11-11 21:53 CutePaint\resource.h
文件 1635 2008-11-11 05:18 CutePaint\SetDlg.cpp
............此处省略5个文件信息
评论
共有 条评论