Share via


EM_SETMARGINS (Compact 2013)

3/28/2014

This message sets the widths of the left and right margins for an edit control. The message redraws the control to reflect the new margins.

Syntax

EM_SETMARGINS 
    wParam = (WPARAM) fwMargin;
    lParam = (LPARAM)MAKELONG(wLeft, wRight);

Parameters

  • fwMargin
    Specifies the margins to set. The following table shows the possible values, which you can combine.

    Value

    Description

    EC_LEFTMARGIN

    Sets the left margin.

    EC_RIGHTMARGIN

    Sets the right margin.

  • wLeft
    Value of the low-order word of lParam. Specifies the width of the left margin, in pixels. This value is ignored if fwMargin does not include EC_LEFTMARGIN.
  • wRight
    Value of the high-order word of lParam. Specifies the width of the right margin, in pixels. This value is ignored if fwMargin does not include EC_RIGHTMARGIN.

Return Value

None.

Requirements

Header

windows.h

See Also

Reference

Edit Box Messages
EM_GETMARGINS