EM_FMTLINES message Sets a flag that determines whether a multiline edit control includes soft line-break characters. A soft line break consists of two carriage returns and a line feed and is inserted at the end of a line that is broken because of wordwrapping. Parameters wParam Specifies whether soft line-break characters are to be inserted. A value of TRUE inserts the characters; a value of FALSE removes them. lParam This parameter is not used. Return value The return value is identical to the wParam parameter. Res This message affects only the buffer returned by the EM_GETHANDLE message and the text returned by the WM_GETTEXT message. It has no effect on the display of the text within the edit control. The EM_FMTLINES message does not affect a line that ends with a hard line break. A hard line break consists of one carriage return and a line feed. Note The size of the text changes when this message is processed. Rich Edit: The EM_FMTLINES message is not supported.Edit_Scroll macro Scrolls the text vertically in a multiline edit or rich edit control. You can use this macro or send the EM_SCROLL message explicitly. Syntax C++void Edit_Scroll( HWND hwndCtl, int dv, int dh );Parameters hwndCtl Type: HWND A handle to the control. dv Type: int The amount to scroll vertically. dh Type: int The amount to scroll horizontally. Return value No return value.
VC/MFC
论坛.
Sets a flag that determines whether a multiline edit control includes soft line-break characters. A soft line break consists of two carriage returns and a line feed and is inserted at the end of a line that is broken because of wordwrapping.
Parameters
wParam
Specifies whether soft line-break characters are to be inserted. A value of TRUE inserts the characters; a value of FALSE removes them.
lParam
This parameter is not used.
Return value
The return value is identical to the wParam parameter.
Res
This message affects only the buffer returned by the EM_GETHANDLE message and the text returned by the WM_GETTEXT message. It has no effect on the display of the text within the edit control.
The EM_FMTLINES message does not affect a line that ends with a hard line break. A hard line break consists of one carriage return and a line feed.
Note The size of the text changes when this message is processed.
Rich Edit: The EM_FMTLINES message is not supported.Edit_Scroll macro
Scrolls the text vertically in a multiline edit or rich edit control. You can use this macro or send the EM_SCROLL message explicitly.
Syntax
C++void Edit_Scroll(
HWND hwndCtl,
int dv,
int dh
);Parameters
hwndCtl
Type: HWND
A handle to the control.
dv
Type: int
The amount to scroll vertically.
dh
Type: int
The amount to scroll horizontally.
Return value
No return value.
形如 "第一行字符串" + "\r\n" +"第二行字符串" + "\r\n" +"第三行字符串" +
贴代码。