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.
|
|
|
|
|
#pragma once
|
|
|
|
|
|
#include "gdiplus.h"
|
|
|
|
|
|
using namespace Gdiplus;
|
|
|
|
|
|
#pragma comment (lib, "Gdiplus.lib")
|
|
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
//<2F>ļ<EFBFBD>: CGdiplusInit.cpp
|
|
|
|
|
|
//<2F><>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>:
|
|
|
|
|
|
// Initializes the GDI+ library.
|
|
|
|
|
|
//
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д: 2006-12-07
|
|
|
|
|
|
//
|
|
|
|
|
|
//
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CGdiplusInit :
|
|
|
|
|
|
public Gdiplus::GdiplusStartupOutput
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD>GDI+<2B><>ʼ<EFBFBD><CABC>
|
|
|
|
|
|
CGdiplusInit(void);
|
|
|
|
|
|
CGdiplusInit(
|
|
|
|
|
|
Gdiplus::DebugEventProc debugEventCallback /* = 0*/,
|
|
|
|
|
|
BOOL suppressBackgroundThread/* = FALSE*/,
|
|
|
|
|
|
BOOL suppressExternalCodecs /* = FALSE*/
|
|
|
|
|
|
);
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD>GDI+<2B><>Դ
|
|
|
|
|
|
virtual ~CGdiplusInit(void);
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
Gdiplus::Status StartupStatus;
|
|
|
|
|
|
ULONG_PTR Token;
|
|
|
|
|
|
};
|