Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

stDC Class Reference

#include <oofDIB.h>

List of all members.


Detailed Description

Own a DC so can cleanup if throw exception.

Used to make it easier to write code that has temp DC's and still be free to throw exceptions. Also can take a DC which we don't own but take care of restoring original bitmap into the object if you want to select a new one in there.


Public Member Functions

 stDC (HDC referenceDC=0)
 ~stDC ()
HDC CreateCompatibleDC ()
 Use instead of DGI CreateCompatibleDC so we track the created DC and delete it.

void SelectBitmapAndRemember (HBITMAP hBitmap)
 Use instead of manually tracking previous bitmap so we can reselect original on exit.

 operator HDC () const


Constructor & Destructor Documentation

stDC::stDC HDC  referenceDC = 0  ) 
 

stDC::~stDC  ) 
 


Member Function Documentation

HDC stDC::CreateCompatibleDC  ) 
 

Use instead of DGI CreateCompatibleDC so we track the created DC and delete it.

stDC::operator HDC  )  const [inline]
 

void stDC::SelectBitmapAndRemember HBITMAP  hBitmap  ) 
 

Use instead of manually tracking previous bitmap so we can reselect original on exit.

Note:
was trying to call this SelectBitmap but that is a MACRO


The documentation for this class was generated from the following files:
Generated on Thu Jan 1 22:04:47 2004 for OOFILE by doxygen 1.3.5