CTrackbar.SetSelmethod
Sets the starting and ending positions for the available selection range in a trackbar.
Syntax
SUB SetSel (BYVAL hTrackbar AS HWND, BYVAL iStart AS SHORT, BYVAL iEnd AS SHORT, BYVAL fRedraw AS BOOLEAN = FALSE)
Parameters
| Name | Description | |
|---|---|---|
hTrackbar | Handle to the trackbar control. | |
iStart | The starting logical position for the selection range. | |
iEnd | The ending logical position for the selection range. |
Description
Sets the starting and ending positions for the available selection range in a trackbar.
Remarks
This message is ignored if the trackbar does not have the TBS_ENABLESELRANGE style.
TBM_SETSEL allows you to restrict the pointer to only a portion of the range available to the progress bar.
Reference
- Include file
CTrackbar.inc - Defined in AfxNova/CTrackbar.inc:353
- Documented in Windows/WIndows Controls/CTrackbar Class.md
- Topic: CTrackbar Class