Help Center

CTrackbar.GetThumbRectmethod

Retrieves the length of the slider in a trackbar.

WindowsmethodCTrackbar.incdocumented

Syntax

SUB GetThumbRect (BYVAL hTrackbar AS HWND, BYVAL prc AS RECT PTR)
SUB GetThumbRect (BYVAL hTrackbar AS HWND, BYREF rc AS RECT)
FUNCTION GetThumbRect (BYVAL hTrackbar AS HWND) AS RECT

Parameters

NameDescription
hTrackbarHandle to the trackbar control.
prcPointer to a RECT structure. The message fills this structure with the bounding rectangle of the trackbar's slider in client coordinates of the trackbar's window.

Description

Retrieves the size and position of the bounding rectangle for the slider in a trackbar.

Reference

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