Help Center

CTrackbar.GetPosmethod

Retrieves the current logical position of the slider in a trackbar.

WindowsmethodCTrackbar.incdocumented

Syntax

FUNCTION GetPos (BYVAL hTrackbar AS HWND) AS LONG

Parameters

NameDescription
hTrackbarHandle to the trackbar control.

Return value

Returns a 32-bit value that specifies the current logical position of the trackbar's slider.

Description

Retrieves the current logical position of the slider in a trackbar. The logical positions are the integer values in the trackbar's range of minimum to maximum slider positions.

Reference

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