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:
Remarks
This member function implements the behavior of the Win32 message TBM_SETBUDDY, 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 Trackbar Control Styles in the Platform SDK.
CSliderCtrl Overview | Class Members | Hierarchy Chart
See Also CSliderCtrl::GetBuddy