TWindowDC::~TWindowDC() { RestoreObjects(); if (ShouldDelete) ::ReleaseDC(Wnd, (HDC)Handle); Handle = 0; }
////////////////////////////////////////////////////////// // TMapDC // ------ // TMapDC::~TMapDC() { // Restore first pen of DC OrgPen = hOldPen; RestoreObjects(); // If DC created with GetDC, call ReleseDC if ( FromWindow ) { ::ReleaseDC (pEditor->Handle, GetHDC()); Handle = 0; // DC destroyed } }
void __stdcall OnProjectileMoveRet() { RestoreObjects(); }
TPaintDC::~TPaintDC() { RestoreObjects(); if (ShouldDelete) ::EndPaint(Wnd, &Ps); }