다음을 통해 공유


CButton::GetTextMargin

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

BOOL GetTextMargin(
   RECT* pmargin 
);

Parameters

  • pmargin
    A pointer to the text margin of the CButton object.

Return Value

Returns the text margin.

Remarks

Nonzero if successful; otherwise 0.

Remarks

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

Requirements

Header: afxwin.h

See Also

Concepts

CButton Class

CButton Members

CButton::SetTextMargin