資源簡(jiǎn)介
VC 內(nèi)存繪圖類,不閃屏,使用方法見博客文章。
代碼片段和文件信息
#include?“stdafx.h“
#include?“My?Draw.h“
#include?“conio.h“
#include?“direct.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif
//?構(gòu)造函數(shù)
My_Draw::My_Draw()
{
????Bool_Flag.Show_Max_Grid?=?false;
????Bool_Flag.Show_Min_Grid?=?false;
????Bool_Flag.Draw_Enable?=?false;
????Bool_Flag.Draw_Line_Choice?=?false;
????Bool_Flag.LButton_Down_Flag?=?false;
????Bool_Flag.LButton_Up_Flag?=?false;
????Bool_Flag.LButton_Double_Down_Flag?=?false;
????TextAreaWidth?=?TEXT_AREA_WIDTH;
????xAxisGrad?=?X_AXIS_GRAD;
????yAxisGrad?=?Y_AXIS_GRAD;
????pBrack?=?new?CPen();????????//?黑色畫筆
????pBlue?=?new?CPen();?????????//?藍(lán)色畫筆
????pYellow?=?new?CPen();???????//?黃色畫筆
????pGren?=?new?CPen();?????????//?綠色畫筆
????pRed?=?new?CPen();??????????//?紅色畫筆
????pPink?=?new?CPen();?????????//?紫色畫筆
??
評(píng)論
共有 條評(píng)論