使用VC2010 编译。
按照下面方法初始化,退出。。没问题。
void C****Ctrl::OnResetState()
{
COleControl::OnResetState(); // Resets defaults found in DoPropExchange
// TODO: Reset any other control state here.
GdiplusStartup(&m_gdiplusToken, &m_gdiplusStartupInput, NULL); // 这里初始化
}
void C****Ctrl::PostNcDestroy()
{
// TODO: Add your specialized code here and/or call the base class
GdiplusShutdown(m_gdiplusToken); // 这里退出
COleControl::PostNcDestroy();
}