Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This message retrieves the handle to a trackbar control buddy window at a specified location. The specified location is relative to the control's orientation, horizontal or vertical.

Syntax

TBM_GETBUDDY 
wParam = (WPARAM)(BOOL) 
fLocation; 

lParam = 0;

Parameters

fLocation

Boolean that specifies which buddy window handle is retrieved, by relative location. It is one of the following values.

Value Description

TRUE

Retrieves the handle to the buddy to the left of the trackbar. If the trackbar control uses the TBS_VERT style, the message will retrieve the buddy above the trackbar.

FALSE

Retrieves the handle to the buddy to the right of the trackbar. If the trackbar control uses the TBS_VERT style, the message will retrieve the buddy below the trackbar.

lParam

Not used.

Return Value

Returns the handle to the buddy window at the location specified by fLocation, or NULL if no buddy exists at that location.

Requirements

Header commctrl.h
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later