// BMPCell.h: interface for the CBMPCell class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_BMPCELL_H__961E240C_2593_4ECB_9478_C25D3B911794__INCLUDED_) #define AFX_BMPCELL_H__961E240C_2593_4ECB_9478_C25D3B911794__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CMBBmpDraw { public: CMBBmpDraw(); virtual ~CMBBmpDraw(); public : static BOOL DrawBitmapOnDC (CDC *pDC,::CRect rcArea, int nDrawStyle, CString strBMPName); static BOOL LoadImageFormFile (CString strFileName, BOOL bForceMonochrome, CBitmap &bmpAnswer, CString *pstrError/*= NULL*/); static BOOL PaintBitmap (CDC *pDC, CBitmap *pbmpData, ::CRect rcAreaOnDC, ::CSize szSource, int nDrawStyle, CString *pstrError/*= NULL*/); private : static BOOL DoAdjustRectangle (CDC *pDC, ::CRect rcAreaOnDC, ::CRect &rcBMPArea, int nAlignType); static BOOL DoAdjustStretchFit (::CRect rcAreaOnDC, ::CRect &rcBMPArea, int nAlignType); static BOOL DoAdjust9Align (::CRect rcAreaOnDC, ::CRect &rcBMPArea, int nAlignType, double fDotPerTMMX, double fDotPerTMMY); static BOOL LoadBitmapFormFile (CString strFileName, BOOL bForceMonochrome, CBitmap &bmpAnswer, CString *pstrError/*= NULL*/); }; #endif // !defined(AFX_BMPCELL_H__961E240C_2593_4ECB_9478_C25D3B911794__INCLUDED_)