CProgBar.SetPosmethod
Sets the current position for a progress bar.
Syntax
FUNCTION SetPos (BYVAL hProgBar AS HWND, BYVAL nNewPos AS LONG) AS LONG
Parameters
| Name | Description | |
|---|---|---|
hProgBar | A handle to a progress bar. | |
nNewPos | Signed integer that becomes the new position. |
Return value
Returns the previous position.
Description
Sets the current position for a progress bar and redraws the bar to reflect the new position.
Remarks
If nNewPos is outside the range of the control, the position is set to the closest boundary.
Do not send this message to a control that has the PBS_MARQUEE style.
Reference
- Include file
CProgBar.inc - Defined in AfxNova/CProgBar.inc:231
- Documented in Windows/WIndows Controls/CProgBar.md
- Topic: CProgBar Class