資源簡介
基于vc6.0開發(fā)的繪圖軟件,可通過菜單選擇,繪制直線 虛線 橢圓 矩形等,包含源碼

代碼片段和文件信息
//?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\n“);
return?-1;??????//?fail?to?create
}
if?(!m_wndStatusBar.Create(this)?||
!m_wndStatusBar.SetIndicators(indicators
??sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed?to?create?status?bar\n“);
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??畫板\Debug\MainFrm.obj
?????文件?????105446??2016-09-09?21:24??畫板\Debug\StdAfx.obj
?????文件?????214016??2016-09-09?21:55??畫板\Debug\vc60.idb
?????文件?????364544??2016-09-09?21:53??畫板\Debug\vc60.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??畫板\Release\MainFrm.obj
?????文件????????750??2016-09-09?21:55??畫板\Release\StdAfx.obj
?????文件??????50176??2016-09-09?22:28??畫板\Release\vc60.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??畫板\res\Toolbar.bmp
?????文件???????1078??2016-09-09?21:21??畫板\res\畫板.ico
?????文件????????396??2016-09-09?21:21??畫板\res\畫板.rc2
?????文件???????1078??2016-09-09?21:21??畫板\res\畫板Doc.ico
?????文件????????873??2016-09-09?21:24??畫板\resource.h
............此處省略22個文件信息
評論
共有 條評論