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


CProgressCtrl::SetState

Sets the state of the current progress bar control.

int SetState(
        int iState
);

Параметры

Parameter

Description

[in] iState

The state to set the progress bar. Use one of the following values:

ValueState
PBST_NORMAL In progress
PBST_ERROR Error
PBST_PAUSED Paused

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

The previous state of the current progress bar control.

Заметки

This method sends the PBM_SETSTATE message, which is described in the Windows SDK.

Требования

Header: afxcmn.h

This control is supported in Windows Vista and later.

Additional requirements for this method are described in Build Requirements for Windows Vista Common Controls.

См. также

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

CProgressCtrl Class

Hierarchy Chart

Using CProgressCtrl

PBM_SETSTATE

CProgressCtrl::GetState