CDC::~CDC()
{
if (m_hDC != NULL)
::DeleteDC(Detach());
}