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.
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
//<2F>ļ<EFBFBD>: CGdiplusInit.cpp
|
|
|
|
|
|
//<2F><>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>:
|
|
|
|
|
|
//
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д: 2006-12-07
|
|
|
|
|
|
//
|
|
|
|
|
|
//
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
#include ".\gdiplusinit.h"
|
|
|
|
|
|
|
|
|
|
|
|
CGdiplusInit::CGdiplusInit(void)
|
|
|
|
|
|
{
|
|
|
|
|
|
Gdiplus::GdiplusStartupInput StartupInput;
|
|
|
|
|
|
StartupStatus = Gdiplus::GdiplusStartup(&Token, &StartupInput, this);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CGdiplusInit::CGdiplusInit(Gdiplus::DebugEventProc debugEventCallback, BOOL suppressBackgroundThread, BOOL suppressExternalCodecs)
|
|
|
|
|
|
{
|
|
|
|
|
|
Gdiplus::GdiplusStartupInput StartupInput(debugEventCallback,suppressBackgroundThread,suppressExternalCodecs);
|
|
|
|
|
|
StartupStatus = Gdiplus::GdiplusStartup(&Token, &StartupInput, this);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CGdiplusInit::~CGdiplusInit(void)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (StartupStatus == Gdiplus::Ok)
|
|
|
|
|
|
{
|
|
|
|
|
|
Gdiplus::GdiplusShutdown(Token);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|