You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
817 B
C++
35 lines
817 B
C++
#pragma once
|
|
#include "gdiplus.h"
|
|
using namespace Gdiplus;
|
|
#pragma comment (lib, "Gdiplus.lib")
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
//文件: CGdiplusInit.cpp
|
|
//主要功能:
|
|
// Initializes the GDI+ library.
|
|
//
|
|
//程序编写: 2006-12-07
|
|
//
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
class CGdiplusInit :
|
|
public Gdiplus::GdiplusStartupOutput
|
|
{
|
|
public:
|
|
//进行GDI+初始化
|
|
CGdiplusInit(void);
|
|
CGdiplusInit(
|
|
Gdiplus::DebugEventProc debugEventCallback /* = 0*/,
|
|
BOOL suppressBackgroundThread/* = FALSE*/,
|
|
BOOL suppressExternalCodecs /* = FALSE*/
|
|
);
|
|
//销毁GDI+资源
|
|
virtual ~CGdiplusInit(void);
|
|
|
|
private:
|
|
Gdiplus::Status StartupStatus;
|
|
ULONG_PTR Token;
|
|
};
|