📄 group__text__output__fns.htm
字号:
<td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>y</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>spText</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>nCount</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>nTabPositions</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int * </td> <td class="mdname" nowrap> <em>pTabPositions</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>nTabOrigin</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Writes a character string at a specified location, expanding tabs to the values specified in an anrry of tab-stop positions. <p>This function writes the string <em>spText</em> with length of <em>nCount</em> at a specified locations, expanding tabs to the value spcified in the array <em>pTabPositions</em> of tab-stop positions.<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>hdc</em> </td><td>The device context. </td></tr> <tr><td valign="top"></td><td valign="top"><em>x</em> </td><td>x,y: The output start position. </td></tr> <tr><td valign="top"></td><td valign="top"><em>y</em> </td><td>x,y: The output start position. </td></tr> <tr><td valign="top"></td><td valign="top"><em>spText</em> </td><td>The formatted text. </td></tr> <tr><td valign="top"></td><td valign="top"><em>nCount</em> </td><td>The length of the text. If it is less than 0, MiniGUI will treat it as a null-terminated string. </td></tr> <tr><td valign="top"></td><td valign="top"><em>nTabPositions</em> </td><td>The length of the array of the tab-stop positions. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pTabPositions</em> </td><td>The array of the tab-stop positions. </td></tr> <tr><td valign="top"></td><td valign="top"><em>nTabOrigin</em> </td><td>The origin of the tab-stops.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The output width of the text.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__text__output__fns.htm#ga7">TabbedTextOutLen</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga7" doxytag="gdi.h::TabbedTextOutLen"></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">int GUIAPI TabbedTextOutLen </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga2">HDC</a> </td> <td class="mdname" nowrap> <em>hdc</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>y</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>spText</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>len</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Outputs a formatted text. <p>This function outputs the formatted text <em>spText</em> with length of <em>len</em> at <em></em>(x,y). This function returns the width of text. The output will be affected by the default tab size if there are some TAB characters in the text.<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>hdc</em> </td><td>The device context. </td></tr> <tr><td valign="top"></td><td valign="top"><em>x</em> </td><td>x,y: The output start position. </td></tr> <tr><td valign="top"></td><td valign="top"><em>y</em> </td><td>x,y: The output start position. </td></tr> <tr><td valign="top"></td><td valign="top"><em>spText</em> </td><td>The formatted text. </td></tr> <tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>The length of the text. If it is less than 0, MiniGUI will treat it as a null-terminated string. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The output width of the text.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__text__output__fns.htm#ga5">TextOutLen</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga5" doxytag="gdi.h::TextOutLen"></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">int GUIAPI TextOutLen </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga2">HDC</a> </td> <td class="mdname" nowrap> <em>hdc</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>y</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>spText</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>len</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Outputs a string of text. <p>This function outputs the text <em>spText</em> with length of <em>len</em> at a (x,y). This function returns the width of text.<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>hdc</em> </td><td>The device context. </td></tr> <tr><td valign="top"></td><td valign="top"><em>x</em> </td><td>x,y: The output start position. </td></tr> <tr><td valign="top"></td><td valign="top"><em>y</em> </td><td>x,y: The output start position. </td></tr> <tr><td valign="top"></td><td valign="top"><em>spText</em> </td><td>The string of the text. </td></tr> <tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>The length of the text. If it is less than 0, MiniGUI will treat it as a null-terminated string. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The output width of the text.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__text__output__fns.htm#ga7">TabbedTextOutLen</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga6" doxytag="gdi.h::TextOutOmitted"></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">MG_EXPORT int GUIAPI TextOutOmitted </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga2">HDC</a> </td> <td class="mdname" nowrap> <em>hdc</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>y</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const char * </td> <td class="mdname" nowrap> <em>mtext</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>len</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>max_extent</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Outputs a string of text with omitted format. <p>fn\ int GUIAPI TextOutOmitted (HDC hdc, int x, int y, \ const char *mtext, int len, int max_extent) This function outputs the text <em>mtext</em> with length of <em>len</em> at a (x,y) with omitted format, if width of the text more than <em>max_extent.This</em> function returns the output width of the text.<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>hdc</em> </td><td>The device context. </td></tr> <tr><td valign="top"></td><td valign="top"><em>x</em> </td><td>x,y: The output start position. </td></tr> <tr><td valign="top"></td><td valign="top"><em>y</em> </td><td>x,y: The output start position. </td></tr> <tr><td valign="top"></td><td valign="top"><em>mtext</em> </td><td>The string of the text. </td></tr> <tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>The length of the text. If it is less than 0, MiniGUI will treat it as a null-terminated string. </td></tr> <tr><td valign="top"></td><td valign="top"><em>max_extent</em> </td><td>The max extent of output text.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The output width of the text.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__text__output__fns.htm#ga5">TextOutLen</a> </dd></dl> </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:54 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 + -