Поделиться через


CButton::SetTextMargin

Call this method to set the text margin of the CButton object.

BOOL SetTextMargin(
   RECT* pmargin
);

Parameters

  • pmargin
    A pointer to the new text margin.

Return Value

Returns TRUE on success, FALSE on failure.

Remarks

This member function emulates the functionality of the BCM_SETTEXTMARGIN message, as described in the Buttons section of the Windows SDK.

Requirements

Header: afxwin.h

See Also

Reference

CButton Class

CButton::GetTextMargin

Other Resources

CButton Members