#include <GDIUtils.h>
Definition at line 156 of file GDIUtils.h.
CBackBuffer::CBackBuffer |
( |
| ) |
|
|
inline |
Definition at line 158 of file GDIUtils.h.
159 CreateCompatibleDC(NULL);
160 ATLASSERT(m_hDC != NULL);
CBackBuffer::~CBackBuffer |
( |
| ) |
|
|
inline |
BOOL CBackBuffer::Allocate |
( |
CSize |
size, |
|
|
HDC |
dcCompatible = NULL |
|
) |
| |
|
inline |
Definition at line 176 of file GDIUtils.h.
177 if (m_hDC == NULL)
return FALSE;
178 if (m_curSize == size)
return TRUE;
181 if (dcCompatible == NULL) {
184 temp = CreateCompatibleBitmap(dcCompatible, size.cx, size.cy);
186 if (temp == NULL)
return FALSE;
void Attach(HBITMAP bmp, CSize size)
static HBITMAP CreateDIB24(CSize size)
void CBackBuffer::Attach |
( |
HBITMAP |
bmp, |
|
|
CSize |
size |
|
) |
| |
|
inline |
Definition at line 165 of file GDIUtils.h.
PFC_CLASS_NOT_COPYABLE_EX(CBackBuffer) private CBitmap m_bitmap
void Attach(HBITMAP bmp, CSize size)
void CBackBuffer::Attach |
( |
HBITMAP |
bmp | ) |
|
|
inline |
Definition at line 170 of file GDIUtils.h.
172 bool state = CBitmapHandle(bmp).GetSize(size);
void Attach(HBITMAP bmp, CSize size)
void CBackBuffer::Dispose |
( |
| ) |
|
|
inline |
Definition at line 191 of file GDIUtils.h.
196 m_curSize = CSize(0,0);
PFC_CLASS_NOT_COPYABLE_EX(CBackBuffer) private CBitmap m_bitmap
Definition at line 198 of file GDIUtils.h.
201 if (!
m_bitmap.GetBitmap(bmp))
return FALSE;
202 lineWidth = bmp.bmWidthBytes;
203 ptr =
reinterpret_cast<t_uint8*
>(bmp.bmBits);
PFC_CLASS_NOT_COPYABLE_EX(CBackBuffer) private CBitmap m_bitmap
CSize CBackBuffer::GetSize |
( |
| ) |
const |
|
inline |
Definition at line 206 of file GDIUtils.h.
206 {
return m_curSize; }
PFC_CLASS_NOT_COPYABLE_EX (CBackBuffer) private CBitmap CBackBuffer::m_bitmap |
HBITMAP CBackBuffer::m_bitmapOld |
The documentation for this class was generated from the following file: