Using GDI+ with MFC or native C/VC++
2011-03-18 21:01
288 查看
Add the following line to your stdafx.h
Intialize the GDI+ resources. Add this to your
At
Your application is ready to consume GDI+ now.
Upon exit, release GDI+ resources. Add the following line to
#include <gdiplus.h> using namespace Gdiplus; #pragma comment(lib, "gdiplus.lib")
Intialize the GDI+ resources. Add this to your
CWinAppderived class as member:
GdiplusStartupInput gdiplusStartupInput; ULONG_PTR gdiplusToken;
At
InitInstance(), add:
GdiplusStartup(gdiplusToken, gdiplusStartupInput, NULL);
Your application is ready to consume GDI+ now.
Upon exit, release GDI+ resources. Add the following line to
ExitInstance():
GdiplusShutdown(gdiplusToken);
相关文章推荐
- Using GDI+ with MFC or native C/C++
- VC++ MFC Tutorial: CListCtrl, InsertItem, Using List Control, SetImageList, Article with source code.
- Using BACKUP ARCHIVELOG with DELETE INPUT or DELETE ALL INPUT【每日一译】--20121115
- Using Mimikatz Alpha or Getting Clear Text Passwords with a Microsoft Tool
- Use Double Buffering to avoid flicker at GDI+(MFC, vc2008)
- Using IP Instances with VLANs or How to Make a Few NICs Look Like Many
- 在VC2010上MFC从配置GDI到画出图形的完整过程
- Using native GDI for text rendering in C#
- VC/MFC 使用GDI实现抓屏
- 做MFC的时候引用了头文件但VC还是报missing storage-class or type specifiers
- VC MFC GDI 位图旋转算法
- SpringData JPA @Query分页查询 Cannot use native queries with dynamic sorting and/or pagination in method
- Using GDI+ in a Single Document MFC Project to Rotate, Zoom, and Constraint an Image
- VC/MFC 使用GDI实现抓屏
- rails yaml with expression or variable (Using ERB in YAML Configuration File)
- fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not u
- VC MFC GDI 位图旋转算法
- Using ODBC Connection Pooling with CDatabase (under MFC)
- [Salesforce] Using the with sharing or without sharing Keywords
- How to automate PowerPoint by using Visual C++ 5.0 or Visual C++ 6.0 with The Microsoft Foundation Classes