首次创建编辑控件时,格式矩形将设置为默认大小。 可以使用EM_SETRECT消息使格式矩形大于或小于编辑控件窗口。 如果编辑控件没有水平滚动条,并且格式设置矩形设置为大于编辑控件窗口,则超过编辑控件窗口宽度的文本行 (但小于) 格式矩形宽度的文本行将被剪裁而不是换行。
EM_SETRECT wParam = 0;lParam = (LPARAM)(LPRECT)lprc; Parameters wParam Not used; set to 0. lprc Long pointer to aRECTstructure that specifies the new dimensions of the rectangle. Return Values None. Remarks The EM_SETRECT message causes the text of the edit control to be redrawn. To ...
EM_SETLIMITTEXT EM_SETMARGINS EM_SETMODIFY EM_SETPASSWORDCHAR EM_SETREADONLY EM_SETRECT EM_SETRECTNP EM_SETSEL EM_SETTABSTOPS EM_SETWORDBREAKPROC EM_SHOWBALLOONTIP EM_TAKEFOCUS EM_UNDO WM_UNDO 编辑控件通知 编辑控件结构 编辑控件常量 平面滚动条 ...
若要在不重绘文本的情况下更改格式矩形的大小,请使用 EM_SETRECTNP 消息。首次创建编辑控件时,格式矩形将设置为默认大小。 可以使用 EM_SETRECT 消息使格式矩形大于或小于编辑控件窗口。如果编辑控件没有水平滚动条,并且格式设置矩形设置为大于编辑控件窗口,则超过编辑控件窗口宽度的文本行 (但小于) 格式矩形宽度的文本...
EM_SETLIMITTEXT EM_SETMARGINS EM_SETMODIFY EM_SETPASSWORDCHAR EM_SETREADONLY EM_SETRECT EM_SETRECTNP EM_SETSEL EM_SETTABSTOPS EM_SETWORDBREAKPROC EM_SHOWBALLOONTIP EM_TAKEFOCUS EM_UNDO WM_UNDO 编辑控件通知 编辑控件结构 编辑控件常量 平面滚动条 ...
By using the EM_SETRECT message, an application can make the formatting rectangle larger or smaller than the edit control window.This message is processed only by multiline edit controls.复制 EM_SETRECT wParam = 0;lParam = (LPARAM)(LPRECT)lprc; ...
When an edit control is first created, the formatting rectangle is set to a default size. You can use theEM_SETRECTmessage to make the formatting rectangle larger or smaller than the edit control window. If the edit control does not have a horizontal scroll bar, and the formatting rectangle...
By using the EM_SETRECT message, an application can make the formatting rectangle larger or smaller than the edit control window.This message is processed only by multiline edit controls.Copy EM_SETRECT wParam = 0; lParam = (LPARAM)(LPRECT) lprc; ...
When an edit control is first created, the formatting rectangle is set to a default size. You can use theEM_SETRECTmessage to make the formatting rectangle larger or smaller than the edit control window. If the edit control does not have a horizontal scroll bar, and the formatting rectangle...
By using the EM_SETRECT message, an application can make the formatting rectangle larger or smaller than the edit control window.This message is processed only by multiline edit controls.複製 EM_SETRECT wParam = 0;lParam = (LPARAM)(LPRECT)lprc; ...