資源簡介
MFC實現的簡單畫多邊形程序,按壓鼠標左鍵作為起點,再次點下是前一段線的終點另一條邊的起點,當點下鼠標右鍵時,顏色填充多邊形內部。
代碼片段和文件信息
//?ChildFrm.cpp:?CChildframe?類的實現
//
#include?“stdafx.h“
#include?“畫多邊形.h“
#include?“ChildFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif
//?CChildframe
IMPLEMENT_DYNCREATE(CChildframe?CMDIChildWndEx)
BEGIN_MESSAGE_MAP(CChildframe?CMDIChildWndEx)
END_MESSAGE_MAP()
//?CChildframe?構造/析構
CChildframe::CChildframe()
{
//?TODO:?在此添加成員初始化代碼
}
CChildframe::~CChildframe()
{
}
BOOL?CChildframe::PreCreateWindow(CREATESTRUCT&?cs)
{
//?TODO:?在此處通過修改?CREATESTRUCT?cs?來修改窗口類或樣式
if(?!CMDIChildWndEx::PreCreateWindow(cs)?)
return?FALSE;
return?TRUE;
}
//?CChildframe?診斷
#ifdef?_DEBUG
void?CChildframe::AssertValid()?const
{
CMDIChildWndEx::AssertValid();
}
void?CChildframe::Dump(CDumpContext&?dc)?const
{
CMDIChildWndEx::Dump(dc);
}
#endif?//_DEBUG
//?CChildframe?消息處理程序
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-06-27?19:14??畫多邊形\
?????文件????????1690??2018-06-27?14:35??畫多邊形\ChildFrm.cpp
?????文件????????1012??2018-06-27?14:35??畫多邊形\ChildFrm.h
?????文件???????17782??2018-06-27?14:35??畫多邊形\ClassView.cpp
?????文件????????2548??2018-06-27?14:35??畫多邊形\ClassView.h
?????目錄???????????0??2018-06-27?19:14??畫多邊形\Debug\
?????文件???????38103??2018-06-27?18:53??畫多邊形\Debug\ChildFrm.obj
?????文件??????232630??2018-06-27?18:53??畫多邊形\Debug\ClassView.obj
?????文件??????177033??2018-06-27?18:53??畫多邊形\Debug\FileView.obj
?????文件??????144955??2018-06-27?18:53??畫多邊形\Debug\MainFrm.obj
?????文件??????123192??2018-06-27?14:54??畫多邊形\Debug\My.res
?????文件??????137434??2018-06-27?18:53??畫多邊形\Debug\OutputWnd.obj
?????文件??????218719??2018-06-27?18:53??畫多邊形\Debug\PropertiesWnd.obj
?????文件??????986561??2018-06-27?18:53??畫多邊形\Debug\stdafx.obj
?????文件?????1412096??2018-06-27?19:14??畫多邊形\Debug\vc141.idb
?????文件?????7221248??2018-06-27?19:14??畫多邊形\Debug\vc141.pdb
?????文件???????24318??2018-06-27?18:53??畫多邊形\Debug\ViewTree.obj
?????文件?????????226??2018-06-27?19:14??畫多邊形\Debug\畫多邊形.log
?????文件???????70876??2018-06-27?19:09??畫多邊形\Debug\畫多邊形.obj
?????文件????60162048??2018-06-27?18:53??畫多邊形\Debug\畫多邊形.pch
?????目錄???????????0??2018-06-27?19:14??畫多邊形\Debug\畫多邊形.tlog\
?????文件????????7808??2018-06-27?19:14??畫多邊形\Debug\畫多邊形.tlog\CL.command.1.tlog
?????文件??????118122??2018-06-27?19:14??畫多邊形\Debug\畫多邊形.tlog\CL.read.1.tlog
?????文件????????3874??2018-06-27?19:14??畫多邊形\Debug\畫多邊形.tlog\CL.write.1.tlog
?????文件????????2250??2018-06-27?19:14??畫多邊形\Debug\畫多邊形.tlog\li
?????文件????????7886??2018-06-27?19:14??畫多邊形\Debug\畫多邊形.tlog\li
?????文件????????1084??2018-06-27?19:14??畫多邊形\Debug\畫多邊形.tlog\li
?????文件?????????292??2018-06-27?14:54??畫多邊形\Debug\畫多邊形.tlog\rc.command.1.tlog
?????文件????????5586??2018-06-27?14:54??畫多邊形\Debug\畫多邊形.tlog\rc.read.1.tlog
?????文件?????????122??2018-06-27?14:54??畫多邊形\Debug\畫多邊形.tlog\rc.write.1.tlog
?????文件?????????203??2018-06-27?19:14??畫多邊形\Debug\畫多邊形.tlog\畫多邊形.lastbuildstate
............此處省略54個文件信息
- 上一篇:vc++ 五子棋
- 下一篇:Windows下libevent C++封裝類實現
評論
共有 條評論