C++面向对象简易图形编辑器(7)

2018-12-23 23:24

面向对象编程技术实验报告

int penWidth; int penStyle; };

struct MySaveRectangle // 矩形保存 { POINT ptS; POINT ptE; COLORREF color; HBRUSH hNewBrush; int brushColor; int penWidth; int penStyle; };

struct MySaveEllipse // 椭圆保存 { POINT ptS; POINT ptE; COLORREF color; HBRUSH hNewBrush; int brushColor; int penWidth; int penStyle; };

struct MySaveText // 文本保存 { POINT pt; char g_EditInput[1024]; COLORREF crText; HFONT hFont; };

typedef struct tagDRAWDATA {

int iSelectionFunc; int iSelectionPenColor; int iSelectionPenStyle; int iSelectionPenWidth; int iSelectionBrush; HPEN hRedDashdotPen; HPEN hBlueSolidPen;

29

面向对象编程技术实验报告

int cxBeginPoint; int cyBeginPoint; int cxCurrPoint; int cyCurrPoint; BOOL bDrawing; }DRAWDATA;

void DrawMyLine(HDC hdc);

void DrawMyRectangle(HDC hdc); void DrawMyEllipse(HDC hdc); void ChooseFont(HWND hwnd); void ChooseColor(HWND hwnd); void DrawMyText(HDC hdc);

void SaveMyData(struct MySaveLine* SaveLine,int LineCount,struct MySaveRectangle* SaveRectangle,int RectangleCount,struct MySaveEllipse* SaveEllipse,int EllipseCount,struct MySaveText* SaveText,int TextCount);

void LoadMyData(struct MySaveLine* SaveLine,int LineCount,struct MySaveRectangle* SaveRectangle,int RectangleCount,struct MySaveEllipse* SaveEllipse,int EllipseCount,struct MySaveText* SaveText,int TextCount);

BOOL CALLBACK InputDlgProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);

#endif

30

面向对象编程技术实验报告

31


C++面向对象简易图形编辑器(7).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:计算机基础

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: