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.
32 lines
863 B
C++
32 lines
863 B
C++
//////////////////////////////////////////////////////////////////////////////
|
|
//Îļþ: CGdiplusInit.cpp
|
|
//Ö÷Òª¹¦ÄÜ:
|
|
//
|
|
//³ÌÐò±àд: 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);
|
|
}
|
|
}
|