#include <oofDIB.h>
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 | |
|
|
|
|
|
|
|
|
Use instead of DGI CreateCompatibleDC so we track the created DC and delete it.
|
|
|
|
|
|
Use instead of manually tracking previous bitmap so we can reselect original on exit.
|
1.3.5