Help Center

CTrackbar.SetThumbLengthmethod

Sets the length of the slider in a trackbar.

WindowsmethodCTrackbar.incdocumented

Syntax

SUB SetThumbLength (BYVAL hTrackbar AS HWND, BYVAL iLength AS LONG)

Parameters

NameDescription
hTrackbarHandle to the trackbar control.
iLengthLength, in pixels, of the slider.

Description

Sets the length of the slider in a trackbar. This message is ignored if the trackbar does not have the TBS_FIXEDLENGTH style.

Reference

  • Include file CTrackbar.inc
  • Defined in AfxNova/CTrackbar.inc:380
  • Documented in Windows/WIndows Controls/CTrackbar Class.md
  • Topic: CTrackbar Class