📄 group__ctrl__edit__msgs.htm
字号:
</tr></table><a class="anchor" name="ga19" doxytag="edit.h::EM_INSERTTEXT"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define EM_INSERTTEXT 0xF0C0 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Inserts the specified text to the current caret position. <p>Normally used to input a long string.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__edit__msgs.htm#ga19">EM_INSERTTEXT</a> <span class="keywordtype">int</span> len; <span class="keyword">const</span> <span class="keywordtype">char</span> *string; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)len; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)string;</pre></div><p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>Length of string </td></tr> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>Pointer to the text string </td></tr> </table></dl><p>Definition at line <a class="el" href="edit_8h-source.htm#l00499">499</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>. </td> </tr></table><a class="anchor" name="ga24" doxytag="edit.h::EM_LIMITTEXT"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define EM_LIMITTEXT 0xF0C5 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Set text limit of an edit control. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__edit__msgs.htm#ga24">EM_LIMITTEXT</a> <span class="keywordtype">int</span> newLimit; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)newLimit; lParam = 0;</pre></div><p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>newLimit</em> </td><td>The new text limit of an edit control. </td></tr> </table></dl><p>Definition at line <a class="el" href="edit_8h-source.htm#l00529">529</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>. </td> </tr></table><a class="anchor" name="ga25" doxytag="edit.h::EM_REDO"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define EM_REDO 0xF0C6 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Redo operation. <p><div class="fragment"><pre class="fragment"> wParam = 0; lParam = 0;</pre></div> <p>Definition at line <a class="el" href="edit_8h-source.htm#l00542">542</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>. </td> </tr></table><a class="anchor" name="ga41" doxytag="edit.h::EM_REFRESHCARET"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define EM_REFRESHCARET 0xF0D4 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Refresh caret of the edit control. <p><p>Definition at line <a class="el" href="edit_8h-source.htm#l00718">718</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>. </td> </tr></table><a class="anchor" name="ga5" doxytag="edit.h::EM_SELECTALL"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define EM_SELECTALL 0xF0B2 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Selects all the texts, the same meaning as ctrl+a. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__edit__msgs.htm#ga5">EM_SELECTALL</a> wParam = 0; lParam = 0;</pre></div> <p>Definition at line <a class="el" href="edit_8h-source.htm#l00251">251</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>. </td> </tr></table><a class="anchor" name="ga13" doxytag="edit.h::EM_SETCARETPOS"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define EM_SETCARETPOS 0xF0BA </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the position of the caret. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__edit__msgs.htm#ga13">EM_SETCARETPOS</a> <span class="keywordtype">int</span> line_pos; <span class="keywordtype">int</span> char_pos; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)line_pos; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)char_pos;</pre></div><p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>line_pos</em> </td><td>The new caret line position. For single line editor, it will be ignored. Note : Here "line" means a text string ended with a line seperator, not a single text line in wrap mode. So, char_pos means the character position in a text string. </td></tr> <tr><td valign="top"></td><td valign="top"><em>char_pos</em> </td><td>The new caret character position.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Length of the string from the beginning to the caret position on success, otherwise -1. </dd></dl><p>Definition at line <a class="el" href="edit_8h-source.htm#l00414">414</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>. </td> </tr></table><a class="anchor" name="ga34" doxytag="edit.h::EM_SETDRAWSELECTFUNC"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define EM_SETDRAWSELECTFUNC 0xF0D0 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the callback function on drawing selected chars. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__edit__msgs.htm#ga34">EM_SETDRAWSELECTFUNC</a> <a class="code" href="group__ctrl__edit__msgs.htm#ga0">ED_DRAWSEL_FUNC</a> drawsel; wParam = 0; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)drawsel;</pre></div><p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>drawsel</em> </td><td>The callback function used to draw selected strings. </td></tr> </table></dl><p>Definition at line <a class="el" href="edit_8h-source.htm#l00635">635</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>. </td> </tr></table><a class="anchor" name="ga35" doxytag="edit.h::EM_SETGETCARETWIDTHFUNC"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define EM_SETGETCARETWIDTHFUNC 0xF0D1 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the callback function on getting caret width. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__edit__msgs.htm#ga35">EM_SETGETCARETWIDTHFUNC</a> int (*get_caret_width) (<a class="code" href="group__handles.htm#ga1">HWND</a>, int); wParam = 0; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)get_caret_width;</pre></div><p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>get_caret_width</em> </td><td>The callback function used to get caret width. The window handle and the maximum caret width are passed as arguments.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The desired caret width. </dd></dl><p>Definition at line <a class="el" href="edit_8h-source.htm#l00654">654</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>. </td> </tr></table><a class="anchor" name="ga14" doxytag="edit.h::EM_SETINSERTION"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define EM_SETINSERTION EM_SETCARETPOS </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__ctrl__edit__msgs.htm#ga13">EM_SETCARETPOS</a> </dd></dl><p>Definition at line <a class="el" href="edit_8h-source.htm#l00420">420</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>. </td> </tr></table><a class="anchor" name="ga10" doxytag="edit.h::EM_SETLFDISPCHAR"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define EM_SETLFDISPCHAR 0xF0B7 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the char used to represent the line seperator. <p>In default case, the line sperator will not be shown. If the char used to represent the line seperator is not zero, this char will be shown in place of line seperator.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__edit__msgs.htm#ga10">EM_SETLFDISPCHAR</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> ch; wParam = 0; lParam = ch;</pre></div><p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>ch</em> </td><td>The char used to represent the line seperator </td></tr> </table></dl><p>Definition at line <a class="el" href="edit_8h-source.htm#l00343">343</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>. </td> </tr></table><a class="anchor" name="ga37" doxytag="edit.h::EM_SETLIMITTEXT"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define EM_SETLIMITTEXT EM_LIMITTEXT </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__ctrl__edit__msgs.htm#ga24">EM_LIMITTEXT</a> </dd></dl><p>Definition at line <a class="el" href="edit_8h-source.htm#l00681">681</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>. </td> </tr></table><a class="anchor" name="ga17" doxytag="edit.h::EM_SETLINEHEIGHT"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -