📄 group__text__output__fns.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>MiniGUI V1.6.10 API Reference: Text output functions</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.htm">Main Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical List</a> | <a class="qindex" href="annotated.htm">Data Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File List</a> | <a class="qindex" href="functions.htm">Data Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related Pages</a></div><h1>Text output functions<br><small>[<a class="el" href="group__gdi__fns.htm">GDI functions</a>]</small></h1><h2>Modules</h2><ul><li><a class="el" href="group__bmp__struct.htm">Bitmap structure</a><li><a class="el" href="group__bmp__load__fns.htm">Bitmap file load/save operations</a></ul><h2>Data Structures</h2><ul><li>struct <a class="el" href="struct__DTFIRSTLINE.htm">_DTFIRSTLINE</a></ul><h2>Defines</h2><ul><li>#define <a class="el" href="group__text__output__fns.htm#ga11">GetTextCharacterExtra</a>(hdc) GetDCAttr (hdc, DC_ATTR_CHAR_EXTRA)<dl class="el"><dd class="mdescRight">Retrieves the current intercharacter spacing for the DC. <a href="#ga11"></a><br></dl><li>#define <a class="el" href="group__text__output__fns.htm#ga12">GetTextAboveLineExtra</a>(hdc) GetDCAttr (hdc, DC_ATTR_ALINE_EXTRA)<dl class="el"><dd class="mdescRight">Retrieves the current spacing above line for the DC. <a href="#ga12"></a><br></dl><li>#define <a class="el" href="group__text__output__fns.htm#ga13">GetTextBellowLineExtra</a>(hdc) GetDCAttr (hdc, DC_ATTR_BLINE_EXTRA)<dl class="el"><dd class="mdescRight">Retrieves the current spacing bellow line for the DC. <a href="#ga13"></a><br></dl><li>#define <a class="el" href="group__text__output__fns.htm#ga14">SetTextCharacterExtra</a>(hdc, extra) SetDCAttr (hdc, DC_ATTR_CHAR_EXTRA, (<a class="el" href="group__win32__types.htm#ga4">DWORD</a>) extra)<dl class="el"><dd class="mdescRight">Sets the intercharacter spacing for the DC and returns the old spacing value. <a href="#ga14"></a><br></dl><li>#define <a class="el" href="group__text__output__fns.htm#ga15">SetTextAboveLineExtra</a>(hdc, extra) SetDCAttr (hdc, DC_ATTR_ALINE_EXTRA, (<a class="el" href="group__win32__types.htm#ga4">DWORD</a>) extra)<dl class="el"><dd class="mdescRight">Sets the spacing above line for the DC and returns the old value. <a href="#ga15"></a><br></dl><li>#define <a class="el" href="group__text__output__fns.htm#ga16">SetTextBellowLineExtra</a>(hdc, extra) SetDCAttr (hdc, DC_ATTR_BLINE_EXTRA, (<a class="el" href="group__win32__types.htm#ga4">DWORD</a>) extra)<dl class="el"><dd class="mdescRight">Sets the spacing bellow line for the DC and returns the old value. <a href="#ga16"></a><br></dl><li>#define <a class="el" href="group__text__output__fns.htm#ga17">TextOut</a>(hdc, x, y, text) TextOutLen (hdc, x, y, text, -1)<dl class="el"><dd class="mdescRight">Outputs text. <a href="#ga17"></a><br></dl><li>#define <a class="el" href="group__text__output__fns.htm#ga18">TabbedTextOut</a>(hdc, x, y, text) TabbedTextOutLen (hdc, x, y, text, -1)<dl class="el"><dd class="mdescRight">Outputs formatted text. <a href="#ga18"></a><br></dl><li>#define <a class="el" href="group__text__output__fns.htm#ga35">DrawText</a>(hdc, text, n, rc, format) DrawTextEx2 (hdc, text, n, rc, 0, format, NULL)<dl class="el"><dd class="mdescRight">Draws a formatted text in a rectangle. <a href="#ga35"></a><br></dl><li>#define <a class="el" href="group__text__output__fns.htm#ga36">DrawTextEx</a>(hdc, text, n, rc, indent, format) DrawTextEx2 (hdc, text, n, rc, indent, format, NULL)<dl class="el"><dd class="mdescRight">Draws a formatted text in a rectangle. <a href="#ga36"></a><br></dl></ul><h2>Typedefs</h2><ul><li>typedef <a class="el" href="struct__DTFIRSTLINE.htm">_DTFIRSTLINE</a> <a class="el" href="group__text__output__fns.htm#ga0">DTFIRSTLINE</a></ul><h2>Functions</h2><ul><li>MG_EXPORT int GUIAPI <a class="el" href="group__text__output__fns.htm#ga1">GetFontHeight</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc)<dl class="el"><dd class="mdescRight">Retrieves the height of the current logical font in a DC. <a href="#ga1"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__text__output__fns.htm#ga2">GetMaxFontWidth</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc)<dl class="el"><dd class="mdescRight">Retrieves the maximal character width of the current logical font in a DC. <a href="#ga2"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__text__output__fns.htm#ga3">GetTextExtent</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, const char *spText, int len, <a class="el" href="struct__SIZE.htm">SIZE</a> *pSize)<dl class="el"><dd class="mdescRight">Computes the output extent of a string of text. <a href="#ga3"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__text__output__fns.htm#ga4">GetTabbedTextExtent</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, const char *spText, int len, <a class="el" href="struct__SIZE.htm">SIZE</a> *pSize)<dl class="el"><dd class="mdescRight">Computes the output extent of a formatted text. <a href="#ga4"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__text__output__fns.htm#ga5">TextOutLen</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int x, int y, const char *spText, int len)<dl class="el"><dd class="mdescRight">Outputs a string of text. <a href="#ga5"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__text__output__fns.htm#ga6">TextOutOmitted</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int x, int y, const char *mtext, int len, int max_extent)<dl class="el"><dd class="mdescRight">Outputs a string of text with omitted format. <a href="#ga6"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__text__output__fns.htm#ga7">TabbedTextOutLen</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int x, int y, const char *spText, int len)<dl class="el"><dd class="mdescRight">Outputs a formatted text. <a href="#ga7"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__text__output__fns.htm#ga8">TabbedTextOutEx</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int x, int y, const char *spText, int nCount, int nTabPositions, int *pTabPositions, int nTabOrigin)<dl class="el"><dd class="mdescRight">Writes a character string at a specified location, expanding tabs to the values specified in an anrry of tab-stop positions. <a href="#ga8"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__text__output__fns.htm#ga9">GetLastTextOutPos</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, <a class="el" href="struct__POINT.htm">POINT</a> *pt)<dl class="el"><dd class="mdescRight">Retrieves the last text output position. <a href="#ga9"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__text__output__fns.htm#ga10">DrawTextEx2</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, const char *pText, int nCount, <a class="el" href="struct__RECT.htm">RECT</a> *pRect, int nIndent, <a class="el" href="group__win32__types.htm#ga6">UINT</a> nFormat, <a class="el" href="struct__DTFIRSTLINE.htm">DTFIRSTLINE</a> *firstline)<dl class="el"><dd class="mdescRight">Draws a formatted text in a rectangle. <a href="#ga10"></a><br></dl></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga35" doxytag="gdi.h::DrawText"></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 DrawText </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">hdc, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>text, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>n, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>rc, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>format </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> DrawTextEx2 (hdc, text, n, rc, 0, format, NULL)</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Draws a formatted text in a rectangle. <p>Defined as a macro calling <em>DrawTextEx2</em> passing <em>nIndent</em> as 0 and <em>firstline</em> as NULL.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__text__output__fns.htm#ga10">DrawTextEx2</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l07014">7014</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>. </td> </tr></table><a class="anchor" name="ga36" doxytag="gdi.h::DrawTextEx"></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 DrawTextEx </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">hdc, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>text, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>n, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>rc, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>indent, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>format </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> DrawTextEx2 (hdc, text, n, rc, indent, format, NULL)</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Draws a formatted text in a rectangle. <p>Defined as a macro calling <em>DrawTextEx2</em> passing <em>firstline</em> as NULL.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__text__output__fns.htm#ga10">DrawTextEx2</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l07025">7025</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>. </td> </tr></table><a class="anchor" name="ga12" doxytag="gdi.h::GetTextAboveLineExtra"></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 GetTextAboveLineExtra </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">hdc </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> GetDCAttr (hdc, DC_ATTR_ALINE_EXTRA)</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Retrieves the current spacing above line for the DC. <p><dl compact><dt><b>Note:</b></dt><dd>Defined as a macro calling <em>GetDCAttr</em> for _USE_NEWGAL. If _USE_NEWGAL is not defined, <em>GetTextAboveLineExtra</em> is defined as a function, and have the same semantics as this macro.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__text__output__fns.htm#ga15">SetTextAboveLineExtra</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l06699">6699</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>. </td> </tr></table><a class="anchor" name="ga13" doxytag="gdi.h::GetTextBellowLineExtra"></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 GetTextBellowLineExtra </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">hdc </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> GetDCAttr (hdc, DC_ATTR_BLINE_EXTRA)</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Retrieves the current spacing bellow line for the DC. <p><dl compact><dt><b>Note:</b></dt><dd>Defined as a macro calling <em>GetDCAttr</em> for _USE_NEWGAL. If _USE_NEWGAL is not defined, <em>GetTextBellowLineExtra</em> is defined as a function, and have the same semantics as this macro.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__text__output__fns.htm#ga16">SetTextBellowLineExtra</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l06711">6711</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>. </td> </tr></table><a class="anchor" name="ga11" doxytag="gdi.h::GetTextCharacterExtra"></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 GetTextCharacterExtra </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">hdc </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> GetDCAttr (hdc, DC_ATTR_CHAR_EXTRA)</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Retrieves the current intercharacter spacing for the DC. <p><dl compact><dt><b>Note:</b></dt><dd>Defined as a macro calling <em>GetDCAttr</em> for _USE_NEWGAL. If _USE_NEWGAL is not defined, <em>GetTextCharacterExtra</em> is defined as a function, and have the same semantics as this macro.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__text__output__fns.htm#ga14">SetTextCharacterExtra</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l06687">6687</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>. </td> </tr></table><a class="anchor" name="ga15" doxytag="gdi.h::SetTextAboveLineExtra"></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 SetTextAboveLineExtra </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">hdc, <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>extra </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> SetDCAttr (hdc, DC_ATTR_ALINE_EXTRA, (<a class="el" href="group__win32__types.htm#ga4">DWORD</a>) extra)</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the spacing above line for the DC and returns the old value. <p><dl compact><dt><b>Note:</b></dt><dd>Defined as a macro calling <em>SetDCAttr</em> for _USE_NEWGAL. If _USE_NEWGAL is not defined, <em>SetTextAboveLineExtra</em> is defined as a function, and have the same semantics as this macro.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__text__output__fns.htm#ga12">GetTextAboveLineExtra</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l06737">6737</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>. </td> </tr></table><a class="anchor" name="ga16" doxytag="gdi.h::SetTextBellowLineExtra"></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 SetTextBellowLineExtra </td> <td class="md" valign="top">( </td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -