acl/lib_protocol/samples/http_client/MeterCtrl.h
zsxxsz cf2528eb7c 完善了非阻塞IO的SSL功能;将 samples 移到 lib_acl 目录下
完善了非阻塞IO的SSL功能;将 acl/samples/ 下的示例分别移到 lib_acl 及 lib_protocol 目录下
2014-11-30 21:15:35 +08:00

39 lines
997 B
C++

#pragma once
// CMeterCtrl
class CMeterCtrl : public CWnd
{
DECLARE_DYNAMIC(CMeterCtrl)
public:
CMeterCtrl();
virtual ~CMeterCtrl();
protected:
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnPaint();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
//virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
virtual BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
const RECT& rect, CWnd* pParentWnd, HMENU nID);
virtual BOOL CreateEx(DWORD dwExStyle, LPCTSTR lpszClassName,
LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect,
CWnd* pParentWnd, UINT nID, LPVOID lpParam = NULL);
UINT SetPos(UINT nPos);
void SetRange(UINT nLower, UINT nUpper);
void StepIt(void);
void SetText(CString& msg);
void SetText(const char* pMsg);
protected:
void InvalidateMeater(void);
UINT m_nLower;
UINT m_nUpper;
UINT m_nPos;
CString m_sCaption;
};