CSliderCtrl::SetBuddy
CWnd* SetBuddy( CWnd* pWndBuddy**, BOOL** fLocation = TRUE );
Return Value
A pointer to a CWnd object that was previously assigned to the slider control at that location.
Parameters
pWndBuddy
A pointer to a CWnd object that will be set as the slider control's buddy.
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.
Remarks
This member function implements the behavior of the Win32 message , as described in the Platform SDK.
Note that this member function uses pointers to CWnd objects, rather than window handles for both its return value and parameter.
For a description of the slider control styles, see in the Platform SDK.
CSliderCtrl Overview | Class Members | Hierarchy Chart
See Also CSliderCtrl::GetBuddy