⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 statusprogress.h

📁 深入剖析Visual C++编程技术及应用实例
💻 H
字号:
// StatusProgress.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CStatusProgress window

class CStatusProgress : public CProgressCtrl
{
	// Construction
public:
	CStatusProgress();
	BOOL Create(CStatusBar * parent, UINT id, DWORD style);
	// Attributes
public:
	
	// Operations
public:
	__inline void Reposition() //{ CStatusControl::reposition(this); }
	{
		if(this == NULL || this->m_hWnd == NULL)
			return;
		UINT id = ::GetWindowLong(this->m_hWnd, GWL_ID);
		CRect r;
		
		CStatusBar * parent = (CStatusBar *)this->GetParent();
		int i = parent->CommandToIndex(id);
		parent->GetItemRect(i, &r);
		this->SetWindowPos(&wndTop, r.left, r.top, r.Width(), r.Height(), 0);
    }
	
	// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CStatusProgress)
	//}}AFX_VIRTUAL
	
	// Implementation
public:
	BOOL Setup(CStatusBar * parent, UINT id, CRect & r);
	virtual ~CStatusProgress();
	
	// Generated message map functions
protected:
	//{{AFX_MSG(CStatusProgress)
	// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG
	
	DECLARE_MESSAGE_MAP()
};

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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -