Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/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 fwMargindoes 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 fwMargindoes not include EC_RIGHTMARGIN.
Return Value
None.
Requirements
Header | windows.h |
Windows Embedded CE | Windows CE 1.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |