CProgressCtrl::GetPos

int GetPos( );

Return Value

The position of the progress bar control.

Remarks

Call this member function to retrieve the current position of the progress bar. 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, 1);

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

CProgressCtrl OverviewClass MembersHierarchy Chart

See Also   CProgressCtrl::SetPos