#if !defined(AFX_BMPPROGCTRL_H)
#define AFX_BMPPROGCTRL_H

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CBmpProgCtrl : public CStatic
{
// Construction
public:
	CBmpProgCtrl();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CBmpProgCtrl)
	//}}AFX_VIRTUAL

// Implementation
public:
	void GetRange(int &lower,int &upper);
	int GetPos();
	int StepIt( );
	int SetStep( int nStep );
	int OffsetPos( int nPos );
	int SetPos( int nPos );
	void SetRange( int nLower, int nUpper );
	void LoadSkin(CString m_skfile);
	virtual ~CBmpProgCtrl();

	// Generated message map functions
protected:
	//{{AFX_MSG(CBmpProgCtrl)
	afx_msg void OnPaint();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
private:
	int m_nLower;
	int m_nUpper;
	int m_nStep;
	int m_nPos;
	float m_length;
	CRect m_rect;
	CBitmap * oldbmp;
	CBitmap bmpBack;
	CBitmap bmpFore;
	CDC * pDCBack;
	CDC * pDCFore;
	BITMAP bmback;
	BITMAP bmfore;
};


#endif 
