gps/GPSProject/GPSMain/BmpProgress.h

63 lines
1.4 KiB
C
Raw Normal View History

2019-05-01 12:32:35 +00:00
#if !defined(AFX_BMPPROGRESS_H__A66AB0A0_7306_40C7_8FA6_AF8ED63C0534__INCLUDED_)
#define AFX_BMPPROGRESS_H__A66AB0A0_7306_40C7_8FA6_AF8ED63C0534__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// BmpProgress.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CBmpProgress window
class CBmpProgress : public CProgressCtrl
{
private:
CDC m_FrontDC;
CDC m_BackDC;
CSize m_bmpSize;
CRect m_WndRect;
int m_Min;
int m_Max;
int m_Pos;
int m_NormalID;
int m_DownID;
// Construction
public:
CBmpProgress();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBmpProgress)
//}}AFX_VIRTUAL
// Implementation
public:
void LoadBitmap(int iNormal,int iDown = 0);
virtual void SetPos(int nPos);
virtual void SetRange(int nMin, int nMax);
virtual ~CBmpProgress();
// Generated message map functions
protected:
//{{AFX_MSG(CBmpProgress)
afx_msg void OnPaint();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BMPPROGRESS_H__A66AB0A0_7306_40C7_8FA6_AF8ED63C0534__INCLUDED_)