Esempio n. 1
0
TWindowDC::~TWindowDC()
{
  RestoreObjects();
  if (ShouldDelete)
    ::ReleaseDC(Wnd, (HDC)Handle);
  Handle = 0;
}
Esempio n. 2
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
	}
}
Esempio n. 3
0
 void __stdcall OnProjectileMoveRet()
 {
     RestoreObjects();
 }
Esempio n. 4
0
TPaintDC::~TPaintDC()
{
  RestoreObjects();
  if (ShouldDelete)
    ::EndPaint(Wnd, &Ps);
}