Condividi tramite


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