www.pudn.com > PressMonitor_q.zip > 3DtempDiBimap.h
// 3DtempDiBimap.h: interface for the C3DtempDiBimap class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_3DTEMPDIBIMAP_H__01DA6707_9CDD_465D_A72C_31A2859FC1EA__INCLUDED_)
#define AFX_3DTEMPDIBIMAP_H__01DA6707_9CDD_465D_A72C_31A2859FC1EA__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class C3DtempDiBimap : public CBitmap
{
protected:
int m_nWidth;
int m_nHeight;
CPalette m_Palette;
private:
using CBitmap::LoadBitmap; // Hide for others
public:
C3DtempDiBimap();
virtual ~C3DtempDiBimap();
enum DIStyle { DI_TOPLEFT, DI_CENTER, DI_TILE };
bool Load(UINT nBitmapId = NULL);
CPalette *GetPalette() { return &m_Palette; }
void Blit(CDC * pDestDC, const CRect &rect, DIStyle Style = DI_TOPLEFT);
void RealizePalette(CDC *pDC, BOOL bBackground);
int GetWidth() { return m_nWidth; }
int GetHeight() { return m_nHeight; }
CSize GetBitmapDimension() { return CSize(m_nWidth, m_nHeight); }
protected:
bool GetBitmapAndPalette(UINT nIDResource);
};
#endif // !defined(AFX_3DTEMPDIBIMAP_H__01DA6707_9CDD_465D_A72C_31A2859FC1EA__INCLUDED_)