Поделиться через


CProgressCtrl::GetPos

Retrieves the current position of the progress bar.

int GetPos( );

Return Value

The position of the progress bar control.

Remarks

The position of the progress bar control is not the physical location on the screen, but rather is between the upper and lower range indicated in SetRange.

Example

CProgressCtrl myCtrl;

// Create a child progress control.
myCtrl.Create(WS_CHILD|WS_VISIBLE, CRect(10,10,200,30), pParentWnd, 
   IDC_PROGRESSCTRL);

// Set the new position to half of the current position.
myCtrl.SetPos(myCtrl.GetPos()/2);   

Requirements

Header: afxcmn.h

See Also

Reference

CProgressCtrl Class

Hierarchy Chart

CProgressCtrl::SetPos

Other Resources

CProgressCtrl Members