CProgressCtrl::GetPos
检索进度栏的当前位置。
int GetPos( );
返回值
进度栏控件的位置。
备注
进度栏控件的位置不是屏幕的物理位置,而是在 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