Help Center

CTrackbar.SetSelmethod

Sets the starting and ending positions for the available selection range in a trackbar.

WindowsmethodCTrackbar.incdocumented

Syntax

SUB SetSel (BYVAL hTrackbar AS HWND, BYVAL iStart AS SHORT, BYVAL iEnd AS SHORT, BYVAL fRedraw AS BOOLEAN = FALSE)

Parameters

NameDescription
hTrackbarHandle to the trackbar control.
iStartThe starting logical position for the selection range.
iEndThe 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