EM_SETMARGINS (Windows Embedded CE 6.0)

1/6/2010

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
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Edit Boxes Messages
EM_GETMARGINS