資源簡介
MFC工程,圖形學課后作業(yè),包括直線DDA算法,科赫曲線,三分康托集,美隊盾牌,小羅伯特·唐尼手臂紋身,等
代碼片段和文件信息
//?ChildFrm.cpp?:?CChildframe?類的實現(xiàn)
//
#include?“stdafx.h“
#include?“test.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?構(gòu)造/析構(gòu)
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?消息處理程序
評論
共有 條評論