内蒙古大学计算机图形学作业——画图工具


内蒙古大学计算机学院,计算机图形学作业——画图工具的实现
资源截图
代码片段和文件信息
// MainFrm.cpp : implementation of the CMainframe class
//

#include “stdafx.h“
#include “MyPaint.h“

#include “MainFrm.h“

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

/////////////////////////////////////////////////////////////////////////////
// CMainframe

IMPLEMENT_DYNCREATE(CMainframe CframeWnd)

BEGIN_MESSAGE_MAP(CMainframe CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

static UINT indicators[] =
{
ID_SEPARATOR           // status line indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};

/////////////////////////////////////////////////////////////////////////////
// CMainframe construction/destruction

CMainframe::CMainframe()
{
// TODO: add member initialization code here

}

CMainframe::~CMainframe()
{
}

int CMainframe::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CframeWnd::OnCreate(lpCreateStruct) == -1)
return -1;

if (!m_wndToolBar.CreateEx(this TBstyle_FLAT WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed to create toolbar
“);
return -1;      // fail to create
}

if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators
  sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed to create status bar
“);
return -1;      // fail to create
}

// TODO: Delete these three lines if you don‘t want the toolbar to
//  be dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);

return 0;
}

BOOL CMainframe::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CframeWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
//  the CREATESTRUCT cs

return TRUE;
}

/////////////////////////////////////////////////////////////////////////////
// CMainframe diagnostics

#ifdef _DEBUG
void CMainframe::AssertValid() const
{
CframeWnd::AssertValid();
}

void CMainframe::Dump(CDumpContext& dc) const
{
CframeWnd::Dump(dc);
}

#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CMainframe message handlers


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

     文件       6762  2011-05-29 10:56  MyPaint_12345MyPaint_123451.txt

     文件        616  2011-06-16 16:27  MyPaint_12345MyPaint_12345a.txt

     文件       2187  2011-06-03 16:45  MyPaint_12345MyPaint_12345aaa.txt

     文件       1292  2011-06-13 21:34  MyPaint_12345MyPaint_12345.txt

     文件         67  2011-05-26 23:30  MyPaint_12345MyPaint_12345c.txt

     文件      19711  2011-05-23 13:15  MyPaint_12345MyPaint_12345DebugMainFrm.obj

     文件     159851  2011-06-23 08:32  MyPaint_12345MyPaint_12345DebugMyPaint.exe

     文件     612724  2011-06-23 08:32  MyPaint_12345MyPaint_12345DebugMyPaint.ilk

     文件      35941  2011-05-27 10:30  MyPaint_12345MyPaint_12345DebugMyPaint.obj

     文件    5507044  2011-05-23 12:37  MyPaint_12345MyPaint_12345DebugMyPaint.pch

     文件     664576  2011-06-23 08:32  MyPaint_12345MyPaint_12345DebugMyPaint.pdb

     文件       8612  2011-06-17 15:41  MyPaint_12345MyPaint_12345DebugMyPaint.res

     文件      11264  2011-06-16 15:33  MyPaint_12345MyPaint_12345DebugMyPaint.suo

     文件      62533  2011-05-26 23:30  MyPaint_12345MyPaint_12345DebugMyPaintDoc.obj

     文件     157419  2011-06-23 08:31  MyPaint_12345MyPaint_12345DebugMyPaintView.obj

     文件      10482  2011-05-27 11:01  MyPaint_12345MyPaint_12345DebugSet_Line_TWDlg.obj

     文件     105442  2011-05-23 12:37  MyPaint_12345MyPaint_12345DebugStdAfx.obj

     文件     467968  2011-06-23 08:32  MyPaint_12345MyPaint_12345Debugvc60.idb

     文件     552960  2011-06-23 08:30  MyPaint_12345MyPaint_12345Debugvc60.pdb

     文件       2368  2011-05-23 13:14  MyPaint_12345MyPaint_12345MainFrm.cpp

     文件       1440  2011-05-23 13:14  MyPaint_12345MyPaint_12345MainFrm.h

     文件          0  2011-05-25 13:00  MyPaint_12345MyPaint_12345MFC12C.tmp

     文件          0  2011-05-25 21:19  MyPaint_12345MyPaint_12345MFCCA.tmp

     文件          0  2011-05-25 21:23  MyPaint_12345MyPaint_12345MFCDE.tmp

     文件      31984  2011-06-23 08:01  MyPaint_12345MyPaint_12345MyPaint.aps

     文件       3477  2011-06-23 08:01  MyPaint_12345MyPaint_12345MyPaint.clw

     文件       4227  2011-05-23 12:37  MyPaint_12345MyPaint_12345MyPaint.cpp

     文件       4576  2011-05-23 12:37  MyPaint_12345MyPaint_12345MyPaint.dsp

     文件        522  2011-05-23 12:37  MyPaint_12345MyPaint_12345MyPaint.dsw

     文件       1367  2011-05-23 12:37  MyPaint_12345MyPaint_12345MyPaint.h

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

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

发表评论

评论列表(条)