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


CProgressCtrl::GetPos

Retrieves the current position of the progress bar.

int GetPos( );

Возвращаемое значение

The position of the progress bar control.

Заметки

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.

Пример

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);   

Требования

Header: afxcmn.h

См. также

Основные понятия

CProgressCtrl Class

CProgressCtrl Members

Hierarchy Chart

CProgressCtrl::SetPos