You can use constants of type ThemeTrackEnableState in the ThemeTrackDrawInfo structure and in the functions GetThemeScrollBarTrackRect and HitTestThemeScrollBarArrows to identify the state of track controls. The ThemeTrackEnableState constants are available with Appearance Manager 1.1 and later.
enum {
kThemeTrackActive = 0,
kThemeTrackDisabled = 1,
kThemeTrackNothingToScroll = 2
};
typedef UInt8 ThemeTrackEnableState;