資源簡介
用VC編寫的一個簡單的畫圖軟件,畫線、點、矩形等。可以調(diào)顏色、線型和線寬等功能。

代碼片段和文件信息
//?Brushstyle.cpp?:?implementation?file
//
#include?“stdafx.h“
#include?“Draw.h“
#include?“Brushstyle.h“
#include?“DrawDoc.h“
#include?“DrawView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CBrushstyle
IMPLEMENT_DYNCREATE(CBrushstyle?CFormView)
CBrushstyle::CBrushstyle()
:?CFormView(CBrushstyle::IDD)
{
//{{AFX_DATA_INIT(CBrushstyle)
//?NOTE:?the?ClassWizard?will?add?member?initialization?here
//}}AFX_DATA_INIT
}
CBrushstyle::~CBrushstyle()
{
}
void?CBrushstyle::DoDataExchange(CDataExchange*?pDX)
{
CFormView::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CBrushstyle)
//?NOTE:?the?ClassWizard?will?add?DDX?and?DDV?calls?here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CBrushstyle?CFormView)
//{{AFX_MSG_MAP(CBrushstyle)
ON_BN_CLICKED(IDC_RADIO1?OnRadio1)
ON_BN_CLICKED(IDC_RADIO2?OnRadio2)
ON_BN_CLICKED(IDC_RADIO3?OnRadio3)
ON_BN_CLICKED(IDC_RADIO4?OnRadio4)
ON_BN_CLICKED(IDC_RADIO5?OnRadio5)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CBrushstyle?diagnostics
#ifdef?_DEBUG
void?CBrushstyle::AssertValid()?const
{
CFormView::AssertValid();
}
void?CBrushstyle::Dump(CDumpContext&?dc)?const
{
CFormView::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CBrushstyle?message?handlers
void?CBrushstyle::OnRadio1()?
{
//?TODO:?Add?your?control?notification?handler?code?here
brushstyle=0;
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CDrawDoc)));
????CDrawDoc?*pDoc=(CDrawDoc*)m_pDocument;
pDoc->brushstyle=brushstyle;
pDoc->UpdateAllViews(NULL0NULL);
}
void?CBrushstyle::OnRadio2()?
{
//?TODO:?Add?your?control?notification?handler?code?here
brushstyle=1;
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CDrawDoc)));
????CDrawDoc?*pDoc=(CDrawDoc*)m_pDocument;
pDoc->brushstyle=brushstyle;
pDoc->UpdateAllViews(NULL0NULL);
}
void?CBrushstyle::OnRadio3()?
{
//?TODO:?Add?your?control?notification?handler?code?here
brushstyle=2;
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CDrawDoc)));
????CDrawDoc?*pDoc=(CDrawDoc*)m_pDocument;
pDoc->brushstyle=brushstyle;
pDoc->UpdateAllViews(NULL0NULL);
}
void?CBrushstyle::OnRadio4()?
{
//?TODO:?Add?your?control?notification?handler?code?here
brushstyle=3;
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CDrawDoc)));
????CDrawDoc?*pDoc=(CDrawDoc*)m_pDocument;
pDoc->brushstyle=brushstyle;
pDoc->UpdateAllViews(NULL0NULL);
}
void?CBrushstyle::OnRadio5()?
{
//?TODO:?Add?your?control?notification?handler?code?here
brushstyle=4;
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CDrawDoc)));
????CDrawDoc?*pDoc=(CDrawDoc*)m_pDocument;
pDoc->brushstyle=brushstyle;
pDoc->UpdateAllViews(NULL0NULL);
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????98304??2007-02-06?16:48??課程設(shè)計1\Draw.opt
?????文件??????16604??2006-11-06?23:58??課程設(shè)計1\Draw.rc
?????文件???????4080??2006-11-08?22:10??課程設(shè)計1\LineColor.cpp
?????文件???????1633??2006-11-08?21:27??課程設(shè)計1\DrawDoc.h
?????文件??????37020??2007-02-06?16:21??課程設(shè)計1\Draw.aps
?????文件???????5500??2006-11-04?22:34??課程設(shè)計1\Draw.dsp
?????文件???????4777??2007-02-06?16:48??課程設(shè)計1\Draw.clw
?????文件???????4263??2006-10-21?23:56??課程設(shè)計1\ReadMe.txt
?????文件???????1334??2006-10-21?23:56??課程設(shè)計1\Draw.h
?????文件???????4173??2006-10-21?23:56??課程設(shè)計1\Draw.cpp
?????文件???????1054??2006-10-21?23:56??課程設(shè)計1\StdAfx.h
?????文件????????206??2006-10-21?23:56??課程設(shè)計1\StdAfx.cpp
?????文件???????2848??2006-11-12?22:48??課程設(shè)計1\DrawView.h
?????文件?????????68??2006-11-07?21:41??課程設(shè)計1\無標題
?????文件??????15984??2006-11-12?22:48??課程設(shè)計1\DrawView.cpp
?????文件???????2163??2006-11-04?11:41??課程設(shè)計1\Draw1
?????文件???????1249??2006-11-04?20:49??課程設(shè)計1\LineWidth.h
?????文件???????2019??2006-11-06?23:58??課程設(shè)計1\Resource.h
?????文件???????1239??2006-11-04?21:10??課程設(shè)計1\Linest
?????文件????????531??2006-10-21?23:56??課程設(shè)計1\Draw.dsw
?????文件???????1219??2006-11-04?21:21??課程設(shè)計1\LineWid.h
?????文件???????1774??2006-11-04?21:10??課程設(shè)計1\Linest
?????文件???????1019??2006-11-04?20:49??課程設(shè)計1\LineWidth.cpp
?????文件???????1810??2006-11-04?21:22??課程設(shè)計1\LineWid.cpp
?????文件???????1355??2006-11-04?21:49??課程設(shè)計1\LineColor.h
?????文件???????1712??2006-11-04?22:41??課程設(shè)計1\Brushst
?????文件???????1653??2006-11-05?00:43??課程設(shè)計1\MainFrm.h
?????文件???????3609??2006-11-05?00:44??課程設(shè)計1\MainFrm.cpp
?????文件???????2887??2006-11-07?21:35??課程設(shè)計1\DrawDoc.cpp
?????文件???????2965??2006-11-04?22:41??課程設(shè)計1\Brushst
............此處省略20個文件信息
- 上一篇:MicrosoftWebDriver
- 下一篇:usbview 工具包
評論
共有 條評論