You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
//////////////////////////////////////////////////////////////////////////////
//文件: 进程条对话框基础操纵类
//主要功能:
// 为了使其派生类具有设置进程条的函数
//
//程序编写:
//日期: 2011-08-30
//
//
/////////////////////////////////////////////////////////////////////////////
# pragma once
# include "ProgressBase.h"
namespace NProgress
{
class AFX_EXT_CLASS CProgressProcess
{
public :
CProgressProcess ( void ) ;
~ CProgressProcess ( void ) ;
//设置进程条信息, 返回false时表示取消该线程
void AttachProgress ( CProgressBase * pProgress ) { m_pProgress = pProgress ; }
CProgressBase * GetProgress ( ) { return m_pProgress ; }
void SetProgressText ( LPCTSTR lpszText ) ;
void SetProgressPos ( int nPos ) ;
void SetProgressRange ( int nLower , int nUpper ) ;
bool IsCanceled ( void ) ;
bool IsSucceed ( void ) ;
bool CanModifyProgress ( ) { return m_bModifyProgress ; }
void ModifyProgress ( bool bEnable ) { m_bModifyProgress = bEnable ; }
bool SetProgressInfo ( __int64 cur , __int64 total ) ;
protected :
CProgressBase * m_pProgress ;
bool m_bModifyProgress ; //是否可更改进程条信息及定位
} ;
} //namespace