2010年12月17日

MFC/Win32中使用GDI+

摘要: 一、MFC中使用GDI+的方法:1、包含头文件与库在stdafx.h中加入以下三行代码:#include "gdiplus.h" using namespace Gdiplus; #pragma comment(lib, "gdiplus.lib")2、安装GDI+在使用GDI+之前要进行安装,否则程序不会报错,但绘图不成功。安装方法如下:GdiplusStartupInput gdiplusStartupInput;ULONG_PTR gdiplusToken;GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);安装完成后就可以 阅读全文

posted @ 2010-12-17 00:18 chuncn 阅读(4194) 评论(0) 推荐(0) 编辑

导航