Share via


CSliderCtrl::GetBuddy

CWnd* GetBuddy( BOOL fLocation = TRUE ) const;

Return Value

A pointer to a CWnd object that is the buddy window at the location specified by fLocation, or NULL if no buddy window exists at that location.

Parameters

fLocation

Value indicating which buddy window handle will be retrieved, by relative location. This value can be one of the following:

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

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

Remarks

This member function implements the behavior of the Win32 message , as described in the Platform SDK.

For a description of the slider control styles, see in the Platform SDK.

CSliderCtrl OverviewClass MembersHierarchy Chart

See Also   CSliderCtrl::SetBuddy