43 : CDialog(nIDTemplate, pParent)
136 CDialog::DoDataExchange(pDX);
165 if (m<=0)
return NULL;
170 return (CVCounter*)child;
193 if (
child==NULL)
return (CVCounter*)
this;
221 this->ShowWindow(SW_SHOW);
270 if (start) SetWindowText(
title);
304 if (rng<=0 || num<0)
return;
308 lrate = (double)rng/(
double)num;
334 if ((
int)(
lrate*num)>fill)
return;
353 if (
parent==NULL)
return cancel;
363 if (wParam==IDCANCEL) cancel =
true;
365 return CDialog::OnCommand(wParam, lParam);
#define PROGRESS_COUNTERMAX
virtual ~CProgressBarDLG()
virtual void SetTitle(char *tn)
virtual void ResetRate(int m, int n)
virtual void StepIt(int n=1)
virtual void SetPos(int pos)
virtual CVCounter * GetUsableCounter()
virtual void Start(int m=100, char *tn=NULL)
virtual bool isCanceled()
virtual void DeleteChildCounter()
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam)
virtual void SetMax(int max)
CProgressBarDLG(LPCTSTR tname=NULL, BOOL dispatcher=FALSE, CWnd *pParent=NULL)
virtual void DoDataExchange(CDataExchange *pDX)
CString mbs2ts(char *str)