pub unsafe extern "C" fn XPGetTrackMetrics(
inX1: c_int,
inY1: c_int,
inX2: c_int,
inY2: c_int,
inMin: c_int,
inMax: c_int,
inValue: c_int,
inTrackStyle: XPTrackStyle,
outIsVertical: *mut c_int,
outDownBtnSize: *mut c_int,
outDownPageSize: *mut c_int,
outThumbSize: *mut c_int,
outUpPageSize: *mut c_int,
outUpBtnSize: *mut c_int,
)Expand description
XPGetTrackMetrics
This routine returns the metrics of a track. If you want to write UI code to manipulate a track, this routine helps you know where the mouse locations are. For most other elements, the rectangle the element is drawn in is enough information. However, the scrollbar drawing routine does some automatic placement; this routine lets you know where things ended up. You pass almost everything you would pass to the draw routine. You get out the orientation, and other useful stuff.
Besides orientation, you get five dimensions for the five parts of a scrollbar, which are the down button, down area (area before the thumb), the thumb, and the up area and button. For horizontal scrollers, the left button decreases; for vertical scrollers, the top button decreases.