Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Progress bar on form

Status
Not open for further replies.

bella123

Programmer
Mar 26, 2002
5
US
I need to add a progress bar to a form, not a dialog box. Does anyone know how to do this? We have multiple examples for the dialog box, but nothing for a form.
 
in your CView class define :
CProgressCtrl myCtrl;

in OnInitialUpdate() your view class:


void CCtrlFormView::OnInitialUpdate()
{

myCtrl.Create( WS_CHILD | WS_VISIBLE, CRect (100,100,500,120), this, 1 );
myCtrl.SetRange( 0, 100 ); // range
myCtrl.SetStep(1); // step
myCtrl.SetPos(50); // initial position

CView::OnInitialUpdate();


}

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top