Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All


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

BOOL GetTextMargin( 
   RECT* pmargin  


A pointer to the text margin of the CButton object.

Returns the text margin.

Nonzero if successful; otherwise 0.

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

Header: afxwin.h

© 2015 Microsoft