📄 group__ctrl__edit__msgs.htm
字号:
<table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">#define EM_SETLINEHEIGHT 0xF0BE </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the height of a line. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__edit__msgs.htm#ga17">EM_SETLINEHEIGHT</a> wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)height; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>The old height value. </dd></dl><dl compact><dt><b>Note:</b></dt><dd>Implemented for TextEdit control. </dd></dl><p>Definition at line <a class="el" href="edit_8h-source.htm#l00472">472</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>. </td> </tr></table><a class="anchor" name="ga11" doxytag="edit.h::EM_SETLINESEP"></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_SETLINESEP 0xF0B8 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the line seperator. <p>In default case, the line sperator is '<br>'.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__edit__msgs.htm#ga11">EM_SETLINESEP</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 new line seperator </td></tr> </table></dl><p>Definition at line <a class="el" href="edit_8h-source.htm#l00361">361</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>. </td> </tr></table><a class="anchor" name="ga30" doxytag="edit.h::EM_SETPASSWORDCHAR"></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_SETPASSWORDCHAR 0xF0CC </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Defines the character that edit control uses in conjunction with the ES_PASSWORD style. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__edit__msgs.htm#ga30">EM_SETPASSWORDCHAR</a> <span class="keywordtype">char</span> passwdChar; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)passwdChar; lParam = 0;</pre></div> <p>Definition at line <a class="el" href="edit_8h-source.htm#l00578">578</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>. </td> </tr></table><a class="anchor" name="ga33" doxytag="edit.h::EM_SETREADONLY"></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_SETREADONLY 0xF0CF </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets or removes the read-only style (ES_READONLY) in an edit control. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__edit__msgs.htm#ga33">EM_SETREADONLY</a> <span class="keywordtype">int</span> readonly; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)readonly; 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>readonly</em> </td><td>Indicates whether the edit control is read-only:<ul><li>Zero<br> Not read-only.</li><li>Non zero<br> Read-only. </li></ul></td></tr> </table></dl><p>Definition at line <a class="el" href="edit_8h-source.htm#l00603">603</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>. </td> </tr></table><a class="anchor" name="ga3" doxytag="edit.h::EM_SETSEL"></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_SETSEL 0xF0B1 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the selected point in the edit control and makes the text between insertion point and selection point selected. <p>Generally, you should send EM_SETCARETPOS first to set insertion point before you use EM_SETSEL to select text.<p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__edit__msgs.htm#ga3">EM_SETSEL</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>Line position of the selection point. For single line editor, it is always zero. Note : For multi-line editor, "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>Character(wide character) position of the selection point.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Length of the selected string </dd></dl><p>Definition at line <a class="el" href="edit_8h-source.htm#l00232">232</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>. </td> </tr></table><a class="anchor" name="ga4" doxytag="edit.h::EM_SETSELECTION"></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_SETSELECTION EM_SETSEL </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#ga3">EM_SETSEL</a> </dd></dl><p>Definition at line <a class="el" href="edit_8h-source.htm#l00238">238</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>. </td> </tr></table><a class="anchor" name="ga50" doxytag="edit.h::EM_SETTIPTEXT"></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_SETTIPTEXT 0xF0DE </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the tip text displayed when content is empty. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__edit__msgs.htm#ga50">EM_SETTIPTEXT</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *buffer; <span class="keywordtype">int</span> len; 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>)buffer;</pre></div> <p>Definition at line <a class="el" href="edit_8h-source.htm#l00820">820</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>. </td> </tr></table><a class="anchor" name="ga48" doxytag="edit.h::EM_SETTITLETEXT"></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_SETTITLETEXT 0xF0DC </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the title text displayed before content text. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__edit__msgs.htm#ga48">EM_SETTITLETEXT</a> <span class="keyword">const</span> <span class="keywordtype">char</span> *title; <span class="keywordtype">int</span> len; 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>)title;</pre></div><p><dl compact><dt><b>Note:</b></dt><dd>Implemented for TextEdit control. </dd></dl><p>Definition at line <a class="el" href="edit_8h-source.htm#l00782">782</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>. </td> </tr></table><a class="anchor" name="ga26" doxytag="edit.h::EM_UNDO"></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_UNDO 0xF0C7 </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Undo 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#l00556">556</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>. </td> </tr></table><hr><h2>Typedef Documentation</h2><a class="anchor" name="ga0" doxytag="edit.h::ED_DRAWSEL_FUNC"></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">typedef int(* <a class="el" href="group__ctrl__edit__msgs.htm#ga0">ED_DRAWSEL_FUNC</a>)(<a class="el" href="group__handles.htm#ga1">HWND</a> hWnd, <a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int startx, int starty, const char *content, int len, int selout) </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Type of the edit control callback function on drawing selected strings. <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>hWnd</em> </td><td>Handle of the edit control. </td></tr> <tr><td valign="top"></td><td valign="top"><em>startx</em> </td><td>x value of the beginning drawing position. </td></tr> <tr><td valign="top"></td><td valign="top"><em>starty</em> </td><td>y value of the beginning drawing position. </td></tr> <tr><td valign="top"></td><td valign="top"><em>content</em> </td><td>The string which will be drawed. </td></tr> <tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>Length of the string which should be drawed by this callback. </td></tr> <tr><td valign="top"></td><td valign="top"><em>selout</em> </td><td>Length of the selected string that have been drawed before calling this callback function.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Width of the outputed strings. </dd></dl><p>Definition at line <a class="el" href="edit_8h-source.htm#l00618">618</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>. </td> </tr></table><a class="anchor" name="ga1" doxytag="edit.h::TEXTPOSINFO"></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">typedef struct <a class="el" href="struct__TEXTPOSINFO.htm">_TEXTPOSINFO</a> <a class="el" href="struct__TEXTPOSINFO.htm">TEXTPOSINFO</a> </td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Structure defines text position information. </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:53 2007 for MiniGUI V1.6.10 API Reference by <a href="http://www.doxygen.org/index.html"><img src="http://www.minigui.com/api_ref/1.6.10/doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -