CSliderCtrl::GetBuddy
Retrieves the handle to a slider control buddy window at a given location.
CWnd* GetBuddy(
BOOL fLocation = TRUE
) const;
Параметры
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.
Возвращаемое значение
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.
Заметки
This member function implements the behavior of the Win32 message TBM_GETBUDDY, as described in the Windows SDK. For a description of the slider control styles, see Trackbar Control Styles in the Windows SDK.
Требования
Header: afxcmn.h