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

📄 group__dc__attrs.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 3 页
字号:
<!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: DC attribute operations</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&nbsp;Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.htm">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File&nbsp;List</a> | <a class="qindex" href="functions.htm">Data&nbsp;Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related&nbsp;Pages</a></div><h1>DC attribute operations<br><small>[<a class="el" href="group__gdi__fns.htm">GDI functions</a>]</small></h1><h2>Defines</h2><ul><li>#define <a class="el" href="group__dc__attrs.htm#ga22">GetBkColor</a>(hdc)&nbsp;&nbsp;&nbsp;GetDCAttr (hdc, DC_ATTR_BK_COLOR)<dl class="el"><dd class="mdescRight">Gets the background color of a DC.  <a href="#ga22"></a><br></dl><li>#define <a class="el" href="group__dc__attrs.htm#ga23">GetBkMode</a>(hdc)&nbsp;&nbsp;&nbsp;GetDCAttr (hdc, DC_ATTR_BK_MODE)<dl class="el"><dd class="mdescRight">Gets the background mode of a DC.  <a href="#ga23"></a><br></dl><li>#define <a class="el" href="group__dc__attrs.htm#ga24">GetPenColor</a>(hdc)&nbsp;&nbsp;&nbsp;GetDCAttr (hdc, DC_ATTR_PEN_COLOR)<dl class="el"><dd class="mdescRight">Gets the pen color of a DC.  <a href="#ga24"></a><br></dl><li>#define <a class="el" href="group__dc__attrs.htm#ga25">GetBrushColor</a>(hdc)&nbsp;&nbsp;&nbsp;GetDCAttr (hdc, DC_ATTR_BRUSH_COLOR)<dl class="el"><dd class="mdescRight">Gets the brush color of a DC.  <a href="#ga25"></a><br></dl><li>#define <a class="el" href="group__dc__attrs.htm#ga26">GetTextColor</a>(hdc)&nbsp;&nbsp;&nbsp;GetDCAttr (hdc, DC_ATTR_TEXT_COLOR)<dl class="el"><dd class="mdescRight">Gets the text color of a DC.  <a href="#ga26"></a><br></dl><li>#define <a class="el" href="group__dc__attrs.htm#ga27">GetTabStop</a>(hdc)&nbsp;&nbsp;&nbsp;GetDCAttr (hdc, DC_ATTR_TAB_STOP)<dl class="el"><dd class="mdescRight">Gets the tabstop value of a DC.  <a href="#ga27"></a><br></dl><li>#define <a class="el" href="group__dc__attrs.htm#ga28">SetBkColor</a>(hdc, color)&nbsp;&nbsp;&nbsp;SetDCAttr (hdc, DC_ATTR_BK_COLOR, (<a class="el" href="group__win32__types.htm#ga4">DWORD</a>) color)<dl class="el"><dd class="mdescRight">Sets the background color of a DC to a new value.  <a href="#ga28"></a><br></dl><li>#define <a class="el" href="group__dc__attrs.htm#ga29">SetBkMode</a>(hdc, mode)&nbsp;&nbsp;&nbsp;SetDCAttr (hdc, DC_ATTR_BK_MODE, (<a class="el" href="group__win32__types.htm#ga4">DWORD</a>) mode)<dl class="el"><dd class="mdescRight">Sets the background color of a DC to a new mode.  <a href="#ga29"></a><br></dl><li>#define <a class="el" href="group__dc__attrs.htm#ga30">SetPenColor</a>(hdc, color)&nbsp;&nbsp;&nbsp;SetDCAttr (hdc, DC_ATTR_PEN_COLOR, (<a class="el" href="group__win32__types.htm#ga4">DWORD</a>) color)<dl class="el"><dd class="mdescRight">Sets the pen color of a DC to a new value.  <a href="#ga30"></a><br></dl><li>#define <a class="el" href="group__dc__attrs.htm#ga31">SetBrushColor</a>(hdc, color)&nbsp;&nbsp;&nbsp;SetDCAttr (hdc, DC_ATTR_BRUSH_COLOR, (<a class="el" href="group__win32__types.htm#ga4">DWORD</a>) color)<dl class="el"><dd class="mdescRight">Sets the brush color of a DC to a new value.  <a href="#ga31"></a><br></dl><li>#define <a class="el" href="group__dc__attrs.htm#ga32">SetTextColor</a>(hdc, color)&nbsp;&nbsp;&nbsp;SetDCAttr (hdc, DC_ATTR_TEXT_COLOR, (<a class="el" href="group__win32__types.htm#ga4">DWORD</a>) color)<dl class="el"><dd class="mdescRight">Sets the text color of a DC to a new value.  <a href="#ga32"></a><br></dl><li>#define <a class="el" href="group__dc__attrs.htm#ga33">SetTabStop</a>(hdc, value)&nbsp;&nbsp;&nbsp;SetDCAttr (hdc, DC_ATTR_TAB_STOP, (<a class="el" href="group__win32__types.htm#ga4">DWORD</a>) value)<dl class="el"><dd class="mdescRight">Sets the tabstop of a DC to a new value.  <a href="#ga33"></a><br></dl></ul><h2>Functions</h2><ul><li>MG_EXPORT <a class="el" href="group__basic__types.htm#ga4">Uint32</a> GUIAPI <a class="el" href="group__dc__attrs.htm#ga0">GetDCAttr</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int attr)<dl class="el"><dd class="mdescRight">Gets a specified attribute value of a DC.  <a href="#ga0"></a><br></dl><li>MG_EXPORT <a class="el" href="group__basic__types.htm#ga4">Uint32</a> GUIAPI <a class="el" href="group__dc__attrs.htm#ga1">SetDCAttr</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int attr, <a class="el" href="group__basic__types.htm#ga4">Uint32</a> value)<dl class="el"><dd class="mdescRight">Sets a specified attribute value of a DC.  <a href="#ga1"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__dc__attrs.htm#ga2">GetRasterOperation</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc)<dl class="el"><dd class="mdescRight">Gets the raster operation of a DC.  <a href="#ga2"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__dc__attrs.htm#ga3">SetRasterOperation</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int rop)<dl class="el"><dd class="mdescRight">Sets the raster operation of a DC to a new value.  <a href="#ga3"></a><br></dl></ul><hr><h2>Define Documentation</h2><a class="anchor" name="ga22" doxytag="gdi.h::GetBkColor"></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 GetBkColor          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">hdc&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;GetDCAttr (hdc, DC_ATTR_BK_COLOR)</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the background color of a DC. <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>&nbsp;</td><td>The device context. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The background pixel value of the DC <em>hdc</em>.</dd></dl><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>GetBkColor</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__dc__attrs.htm#ga0">GetDCAttr</a>, <a class="el" href="group__dc__attrs.htm#ga28">SetBkColor</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l02077">2077</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga23" doxytag="gdi.h::GetBkMode"></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 GetBkMode          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">hdc&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;GetDCAttr (hdc, DC_ATTR_BK_MODE)</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the background mode of a DC. <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>&nbsp;</td><td>The device context. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The background mode of the DC <em>hdc</em>.</dd></dl><dl compact><dt><b>Return values:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>BM_TRANSPARENT\n</em>&nbsp;</td><td>Indicate that reserve the background untouched when drawing text. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>BM_OPAQUE\n</em>&nbsp;</td><td>Indicate that erase the background with background color when drawing text.</td></tr>  </table></dl><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>GetBkMode</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__dc__attrs.htm#ga0">GetDCAttr</a>, <a class="el" href="group__dc__attrs.htm#ga29">SetBkMode</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l02098">2098</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga25" doxytag="gdi.h::GetBrushColor"></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 GetBrushColor          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">hdc&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;GetDCAttr (hdc, DC_ATTR_BRUSH_COLOR)</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the brush color of a DC. <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>&nbsp;</td><td>The device context. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The brush color (pixel value) of the DC <em>hdc</em>.</dd></dl><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>GetBrushColor</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__dc__attrs.htm#ga0">GetDCAttr</a>, <a class="el" href="group__dc__attrs.htm#ga31">SetBrushColor</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l02128">2128</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga24" doxytag="gdi.h::GetPenColor"></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 GetPenColor          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">hdc&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;GetDCAttr (hdc, DC_ATTR_PEN_COLOR)</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the pen color of a DC. <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>&nbsp;</td><td>The device context. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The pen color (pixel value) of the DC <em>hdc</em>.</dd></dl><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>GetPenColor</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__dc__attrs.htm#ga0">GetDCAttr</a>, <a class="el" href="group__dc__attrs.htm#ga30">SetPenColor</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l02113">2113</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga27" doxytag="gdi.h::GetTabStop"></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 GetTabStop          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">hdc&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;GetDCAttr (hdc, DC_ATTR_TAB_STOP)</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Gets the tabstop value of a DC. <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>&nbsp;</td><td>The device context. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The tabstop value of the DC <em>hdc</em>.</dd></dl><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>GetTabStop</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__dc__attrs.htm#ga0">GetDCAttr</a>, <a class="el" href="group__dc__attrs.htm#ga33">SetTabStop</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l02158">2158</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga26" doxytag="gdi.h::GetTextColor"></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 GetTextColor          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">hdc&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;GetDCAttr (hdc, DC_ATTR_TEXT_COLOR)</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>

⌨️ 快捷键说明

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