Freigeben über


CEdit::SetMargins

Call this method to set the left and right margins of this edit control.

void SetMargins(
   UINT nLeft,
   UINT nRight 
);

Parameters

  • nLeft
    The width of the new left margin, in pixels.

  • nRight
    The width of the new right margin, in pixels.

Remarks

Hinweis

This member function is available beginning with Windows 95 and Windows NT 4.0.

For more information, see EM_SETMARGINS in the Windows SDK.

Example

See the example for CEditView::GetEditCtrl.

Requirements

Header: afxwin.h

See Also

Reference

CEdit Class

Hierarchy Chart

CEdit::GetMargins

Other Resources

CEdit Members