1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
| // 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_)
|
|