TBM_SETBUDDYTBM_SETBUDDY*
*Contents  *Index  *Topic Contents
*Previous Topic: TBM_GETUNICODEFORMAT
*Next Topic: TBM_SETLINESIZE

TBM_SETBUDDY


TBM_SETBUDDY
    wParam = (WPARAM)(BOOL) fLocation;
    lParam = (LPARAM)(HWND) hwndBuddy;

Assigns a window as the buddy window for a trackbar control. Trackbar buddy windows are automatically displayed in a location relative to the control's orientation (horizontal or vertical).

fLocation
Value specifying the location at which to display the buddy window. This value can be one of the following:
TRUE The buddy will appear to the left of the trackbar if the trackbar control uses the TBS_HORZ style. If the trackbar uses the TBS_VERT style, the buddy appears above the trackbar control.
FALSE The buddy will appear to the right of the trackbar if the trackbar control uses the TBS_HORZ style. If the trackbar uses the TBS_VERT style, the buddy appears below the trackbar control.
hwndBuddy
Handle to the window that will be set as the trackbar control's buddy.

Note Trackbar controls support up to two buddy windows. This can be useful when you must display text or images at each end of the control.

Version 4.70


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.