⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 group__ctrl__edit__msgs.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 4 页
字号:
      &nbsp;    </td>    <td><p>Gets the height of a line. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__edit__msgs.htm#ga16">EM_GETLINEHEIGHT</a> wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>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#l00456">456</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>.    </td>  </tr></table><a class="anchor" name="ga22" doxytag="edit.h::EM_GETMAXLIMIT"></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_GETMAXLIMIT&nbsp;&nbsp;&nbsp;0xF0C3          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Get text limit of a single-line edit control. <p><p>Definition at line <a class="el" href="edit_8h-source.htm#l00510">510</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>.    </td>  </tr></table><a class="anchor" name="ga52" doxytag="edit.h::EM_GETNUMOFPARAGRAPHS"></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_GETNUMOFPARAGRAPHS&nbsp;&nbsp;&nbsp;0xF0E0          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the number of paragraphs in textedit control. <p><dl compact><dt><b>Returns:</b></dt><dd>The number of paragraphs. </dd></dl><p>Definition at line <a class="el" href="edit_8h-source.htm#l00865">865</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>.    </td>  </tr></table><a class="anchor" name="ga53" doxytag="edit.h::EM_GETPARAGRAPHLENGTH"></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_GETPARAGRAPHLENGTH&nbsp;&nbsp;&nbsp;0xF0E1          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the specified paragraph length in textedit control. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__edit__msgs.htm#ga53">EM_GETPARAGRAPHLENGTH</a> wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>) index;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>The length of text. </dd></dl><p>Definition at line <a class="el" href="edit_8h-source.htm#l00877">877</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>.    </td>  </tr></table><a class="anchor" name="ga54" doxytag="edit.h::EM_GETPARAGRAPHTEXT"></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_GETPARAGRAPHTEXT&nbsp;&nbsp;&nbsp;0xF0E2          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the specified paragraph text from textedit control. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__edit__msgs.htm#ga54">EM_GETPARAGRAPHTEXT</a> <span class="keyword">const</span> <span class="keywordtype">char</span> buffer[BUF_SIZE]; <a class="code" href="struct__TEXTPOSINFO.htm">TEXTPOSINFO</a> info; info.<a class="code" href="struct__TEXTPOSINFO.htm#o1">start_pos</a> = 0; info.<a class="code" href="struct__TEXTPOSINFO.htm#o2">copy_len</a> = BUF_SIZE; info.<a class="code" href="struct__TEXTPOSINFO.htm#o3">buff</a> = buffer; info.<a class="code" href="struct__TEXTPOSINFO.htm#o0">paragraph_index</a> = -1; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)&amp;info;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>The copied length of text which doesn't include terminate character ''. </dd></dl><p>Definition at line <a class="el" href="edit_8h-source.htm#l00898">898</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>.    </td>  </tr></table><a class="anchor" name="ga36" doxytag="edit.h::EM_GETPASSWORDCHAR"></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_GETPASSWORDCHAR&nbsp;&nbsp;&nbsp;0xF0D2          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Returns the character that edit controls uses in conjunction with the ES_PASSWORD style. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__edit__msgs.htm#ga36">EM_GETPASSWORDCHAR</a> wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>The currently used password character </dd></dl><p>Definition at line <a class="el" href="edit_8h-source.htm#l00675">675</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>.    </td>  </tr></table><a class="anchor" name="ga2" doxytag="edit.h::EM_GETSEL"></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_GETSEL&nbsp;&nbsp;&nbsp;0xF0B0          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the selected string in the edit control. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__edit__msgs.htm#ga2">EM_GETSEL</a> <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><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>&nbsp;</td><td>Length of buffer. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>buffer</em>&nbsp;</td><td>Pointer to the string buffer</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#l00203">203</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>.    </td>  </tr></table><a class="anchor" name="ga6" doxytag="edit.h::EM_GETSELPOS"></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_GETSELPOS&nbsp;&nbsp;&nbsp;0xF0B3          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the position of the selection point. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__edit__msgs.htm#ga6">EM_GETSELPOS</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>&nbsp;</td><td>Pointer to a integer buffer to save the selection line position. For single line editor, it is always zero. 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>&nbsp;</td><td>Pointer to a integer buffer to save the selection character position.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The string length of the text from the beginning to the selection point. </dd></dl><p>Definition at line <a class="el" href="edit_8h-source.htm#l00275">275</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>.    </td>  </tr></table><a class="anchor" name="ga51" doxytag="edit.h::EM_GETTIPTEXT"></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_GETTIPTEXT&nbsp;&nbsp;&nbsp;0xF0DF          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the tip text displayed when content is empty. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__edit__msgs.htm#ga51">EM_GETTIPTEXT</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><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>&nbsp;</td><td>Should be length of buffer minus 1, left space for '\0' </td></tr>    <tr><td valign="top"></td><td valign="top"><em>buffer</em>&nbsp;</td><td>String buffer</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Length of tip text </dd></dl><p>Definition at line <a class="el" href="edit_8h-source.htm#l00840">840</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>.    </td>  </tr></table><a class="anchor" name="ga49" doxytag="edit.h::EM_GETTITLETEXT"></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_GETTITLETEXT&nbsp;&nbsp;&nbsp;0xF0DD          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the title text displayed before content text. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__edit__msgs.htm#ga49">EM_GETTITLETEXT</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><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>&nbsp;</td><td>Should be length of buffer minus 1, left space for '\0' </td></tr>    <tr><td valign="top"></td><td valign="top"><em>buffer</em>&nbsp;</td><td>String buffer</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Length of title </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#l00804">804</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>.    </td>  </tr></table><a class="anchor" name="ga7" doxytag="edit.h::EM_INSERTCBTEXT"></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_INSERTCBTEXT&nbsp;&nbsp;&nbsp;0xF0B4          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Inserts the text in the clipboard to the current caret position. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__edit__msgs.htm#ga7">EM_INSERTCBTEXT</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>&nbsp;</td><td>Length of string </td></tr>    <tr><td valign="top"></td><td valign="top"><em>string</em>&nbsp;</td><td>Pointer to the text string </td></tr>  </table></dl><p>Definition at line <a class="el" href="edit_8h-source.htm#l00293">293</a> of file <a class="el" href="edit_8h-source.htm">edit.h</a>.    </td>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -