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

CP_HDC Class Reference

Class that provides a wrapper for the Windows HDC. More...

Inheritance diagram for CP_HDC:

CP_M_RefCounted List of all members.

Public Member Functions

Constructor / Destructor
 CP_HDC (HDC inHDC, HWND inHWND)
 Constructor.
 CP_HDC (const CP_HDC &inHDC)
virtual ~CP_HDC () throw ()
 Destructor.
Getters
HDC GetHDC ()
operators
CP_HDCoperator= (const CP_HDC &inHDC)

Protected Attributes

HDC fHDC
HWND fHWND

Detailed Description

This class will provide reference counted management of the Windows HDC resource.


Constructor & Destructor Documentation

CPLAT_Begin_Namespace_CPLAT CP_HDC::CP_HDC HDC  inHDC,
HWND  inHWND
 

CP_HDC::CP_HDC const CP_HDC inHDC  ) 
 

CP_HDC::~CP_HDC  )  throw () [virtual]
 


Member Function Documentation

HDC CP_HDC::GetHDC  ) 
 

CP_HDC & CP_HDC::operator= const CP_HDC inHDC  ) 
 

UInt32 CP_M_RefCounted::AddReference  )  const [inherited]
 

Add a reference to our object, returning the new reference count.

Exceptions:
none 
Returns:
UInt32 const Returns the new reference count.

UInt32 CP_M_RefCounted::RemoveReference  )  const [inherited]
 

Remove a reference to our object, returning the new reference count. If the count is 0, then this object is also deleted, and 0 is returned.

Exceptions:
none 
Returns:
UInt32 const Returns the new reference count.

void CP_M_RefCounted::Autorelease  )  const [inherited]
 

Add the object to the topmost auto-release pool. This will ensure that the object is eventually released.

See also:
CP_AutoReleasePool
Exceptions:
none 
Returns:
void

UInt32 CP_M_RefCounted::GetRefCount  )  const [inherited]
 

Returns the current ref count.

Exceptions:
none 
Returns:
UInt32 The current referencce count.


Member Data Documentation

HDC CP_HDC::fHDC [protected]
 

HWND CP_HDC::fHWND [protected]
 

The HDC we manage.


The documentation for this class was generated from the following files:
Generated on Sat Sep 17 20:01:44 2005 for CPLAT by  doxygen 1.4.0