CSpinButtonCtrl::SetBuddy

Sets the buddy window for a spin button control.

CWnd* SetBuddy(
   CWnd* pWndBuddy 
);

Parameters

  • pWndBuddy
    Pointer to the new buddy window.

Return Value

A pointer to the previous buddy window.

Requirements

Header: afxcmn.h

Remarks

A spin control is almost always associated with another window, such as an edit control, that displays some content. This other window is called the "buddy" of the spin control.

See Also

Reference

CSpinButtonCtrl Class

Hierarchy Chart

CSpinButtonCtrl::GetBuddy

Other Resources

CSpinButtonCtrl Members

Change History

Date

History

Reason

June 2010

Added text to explain "buddy".

Customer feedback.