CEdit::SetMargins

调用此方法设置左右边距此编辑控件。

void SetMargins( 
   UINT nLeft, 
   UINT nRight  
);

参数

  • nLeft
    新的左边距的宽度,以像素为单位。

  • nRight
    新的权限边距的宽度,以像素为单位。

备注

备注

此成员函数从Windows 95及Windows NT 4.0开始可用。

有关更多信息,请参见 Windows SDK的 EM_SETMARGINS

示例

CEditView::GetEditCtrl参见示例。

要求

Header: afxwin.h

请参见

参考

CEdit Class

层次结构图

CEdit::GetMargins