基于VC++6.0的绘图软件画直线曲线矩形


基于vc6.0开发的绘图软件,可通过菜单选择,绘制直线 虚线 椭圆 矩形等,包含源码
资源截图
代码片段和文件信息
// MainFrm.cpp : implementation of the CMainframe class
//

#include “stdafx.h“
#include “画板.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



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

     文件      19715  2016-09-09 21:37  画板DebugMainFrm.obj

     文件     105446  2016-09-09 21:24  画板DebugStdAfx.obj

     文件     214016  2016-09-09 21:55  画板Debugvc60.idb

     文件     364544  2016-09-09 21:53  画板Debugvc60.pdb

     文件     118834  2016-09-09 21:53  画板Debug画板.exe

     文件     325564  2016-09-09 21:53  画板Debug画板.ilk

     文件      22538  2016-09-09 21:53  画板Debug画板.obj

     文件    5507044  2016-09-09 21:24  画板Debug画板.pch

     文件     484352  2016-09-09 21:53  画板Debug画板.pdb

     文件       7248  2016-09-09 21:24  画板Debug画板.res

     文件      14326  2016-09-09 21:24  画板Debug画板Doc.obj

     文件      27024  2016-09-09 21:53  画板Debug画板View.obj

     文件    1886514  2016-09-09 21:55  画板Debug.rar

     文件       2367  2016-09-09 21:37  画板MainFrm.cpp

     文件       1440  2016-09-09 21:37  画板MainFrm.h

     文件       4249  2016-09-09 21:21  画板ReadMe.txt

     文件      12768  2016-09-09 21:55  画板ReleaseMainFrm.obj

     文件        750  2016-09-09 21:55  画板ReleaseStdAfx.obj

     文件      50176  2016-09-09 22:28  画板Releasevc60.idb

     文件      32768  2016-09-09 21:55  画板Release画板.exe

     文件      16064  2016-09-09 21:55  画板Release画板.obj

     文件    5696040  2016-09-09 21:55  画板Release画板.pch

     文件       7248  2016-09-09 21:55  画板Release画板.res

     文件       9138  2016-09-09 21:55  画板Release画板Doc.obj

     文件      15493  2016-09-09 21:55  画板Release画板View.obj

     文件       1078  2016-09-09 21:21  画板
esToolbar.bmp

     文件       1078  2016-09-09 21:21  画板
es画板.ico

     文件        396  2016-09-09 21:21  画板
es画板.rc2

     文件       1078  2016-09-09 21:21  画板
es画板Doc.ico

     文件        873  2016-09-09 21:24  画板
esource.h

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

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

发表评论

评论列表(条)