Condividi tramite


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

Reference

CButton Class

CButton::SetTextMargin

Other Resources

CButton Members