#if !defined(AFX_STCEMFIMAGE_H__FD0046A4_0103_11D3_AD02_00C0F6B0E2D0__INCLUDED_)
#define AFX_STCEMFIMAGE_H__FD0046A4_0103_11D3_AD02_00C0F6B0E2D0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// StcEmfImage.h : _xZkqqHx_iDhHiDgCiDfPiBfL_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//

#include "Env.h"	// For EmfImageID.

#ifdef SUPER_CLASS
#undef SUPER_CLASS
#endif
#define SUPER_CLASS CStatic

/////////////////////////////////////////////////////////////////////////////
// CFCStcEmfImage _xZkqqHx_iDeFiDeCiDjDiDgIiDeF_xHqqkZx_

class CFCStcEmfImage : public SUPER_CLASS
{
protected:
typedef SUPER_CLASS BASE_CLASS;

// _xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfGiDiHiDjD_xHqqkZx_
public:
	CFCStcEmfImage();

// _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_
public:
	void	SetEmfHorzMap (BYTE	byEmfHorzMap);
	void	SetEmfVertMap (BYTE	byEmfVertMap);
	void	SetEmfImage	(EmfImageID	emidEmfImage);
	void	SetEmfImage (const BYTE* bypData, long lDataSize);
	void	SetEmfImage (HENHMETAFILE hEMF);
	HENHMETAFILE	GetEmfImage () const;
	void	SetMargin (	long pxMarginL,
						long pxMarginT,
						long pxMarginR,
						long pxMarginB);

	void	FlickerFreeDraw (short nEffect = 0);

protected:
	void	DrawImage (CDC* pDC, CRect rtClient) const;
	void	MakeBitmap (CBitmap* pBitmap,
						CDC* pDC,
						const CRect& rtClient,
						long pxMarginL,
						long pxMarginT,
						long pxMarginR,
						long pxMarginB) const;

// _xZkqqHx_iDiGiBfLiDfFjFmPjAjEiBeC_xHqqkZx_
public:
	HENHMETAFILE	m_hEMF;			// _xZkqqHx_iDiBiDfOiDhEiDeAiDeDiDiLiDgOiDjDiDgIiDiLiBeC_xHqqkZx_
	BYTE			m_byEmfHorzMap;	// _xZkqqHx_jAiFjFlNjFpLiMpMiCmMiDhNiDgCiDhGiBeC_xHqqkZx_
	BYTE			m_byEmfVertMap;	// _xZkqqHx_jAiCjClMjFpLiMpMiCmMiDhNiDgCiDhGiBeC_xHqqkZx_
	EmfImageID		m_emidEmfImage;	// EmfImageID_xZkqqHx_iCpAiLeMjIfOiBeC_xHqqkZx_UNUSE,UNSPECIFY_xZkqqHx_jHhAiBeC_xHqqkZx_

	long			m_pxMarginL;	// _xZkqqHx_jFgAiJoGiClHiCoJiDeDiDiBiBfLiDfHiCmMiNlGjBkEiDhNiBfLiDfHiDjDiCpAiOhHjCoIiBeC_xHqqkZx_
	long			m_pxMarginT;	// _xZkqqHx_jFgAiJoGiClHiCoJiDeDiDiBiBfLiDfHiCmMiPoDjBkEiDhNiBfLiDfHiDjDiCpAiOhHjCoIiBeC_xHqqkZx_
	long			m_pxMarginR;	// _xZkqqHx_jFgAiJoGiClHiCoJiDeDiDiBiBfLiDfHiCmMiJeFjBkEiDhNiBfLiDfHiDjDiCpAiOhHjCoIiBeC_xHqqkZx_
	long			m_pxMarginB;	// _xZkqqHx_jFgAiJoGiClHiCoJiDeDiDiBiBfLiDfHiCmMiJlKjBkEiDhNiBfLiDfHiDjDiCpAiOhHjCoIiBeC_xHqqkZx_

// _xZkqqHx_iDeBiDgHiDiKiDhCiDiFiBfLiDgH_xHqqkZx_
public:

// _xZkqqHx_iDeJiDhJiDiMiBfLiDfGiDiHiDjD_xHqqkZx_
public:

// _xZkqqHx_iDeJiBfLiDgPiBfLiDiJiDeDiDgI_xHqqkZx_
	// ClassWizard _xZkqqHx_iCmNiJlMjBhKiKnGjAjEiCmMiDeJiBfLiDgPiBfLiDiJiDeDiDgIiCpAjAlGjAkMiClFiCnMiClHiBeC_xHqqkZx_
	//{{AFX_VIRTUAL(CFCStcEmfImage)
	//}}AFX_VIRTUAL

// _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_
public:
	virtual ~CFCStcEmfImage();

	// _xZkqqHx_jAlGjAkMiClDiCoKiClNiDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDhNiDgCiDhGiKnGjAjE_xHqqkZx_
protected:
	//{{AFX_MSG(CFCStcEmfImage)
	afx_msg void OnPaint();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ _xZkqqHx_iCmNjBePiNhDiCmMjClMjBePiCmJjCmHiJmBiCmMjAoJiMlOiCpAjBhNjDpMiClFiCnMiClHiBeC_xHqqkZx_

#endif // !defined(AFX_STCEMFIMAGE_H__FD0046A4_0103_11D3_AD02_00C0F6B0E2D0__INCLUDED_)
