📄 group__dc__attrs.htm
字号:
<td class="md" nowrap> SetDCAttr (hdc, DC_ATTR_TEXT_COLOR, (<a class="el" href="group__win32__types.htm#ga4">DWORD</a>) color)</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Sets the text color of a DC to a new value. <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>color</em> </td><td>The new text color (pixel value). </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The old text 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>SetDCAttr</em> for _USE_NEWGAL. If _USE_NEWGAL is not defined, <em>SetTextColor</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#ga1">SetDCAttr</a>, <a class="el" href="group__dc__attrs.htm#ga26">GetTextColor</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l02249">2249</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>. </td> </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="ga0" doxytag="gdi.h::GetDCAttr"></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"><a class="el" href="group__basic__types.htm#ga4">Uint32</a> GUIAPI GetDCAttr </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>attr</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>Gets a specified attribute value of a DC. <p>This function retrieves a specified attribute value of the DC <em>hdc</em>.<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>attr</em> </td><td>The attribute to be retrieved, can be one of the following values:</td></tr> </table></dl><ul><li>DC_ATTR_BK_COLOR<br> Background color.</li><li>DC_ATTR_BK_MODE<br> Background mode.</li><li>DC_ATTR_PEN_TYPE<br> Pen type.</li><li>DC_ATTR_PEN_CAP_STYLE<br> Cap style of pen.</li><li>DC_ATTR_PEN_JOIN_STYLE<br> Join style of pen.</li><li>DC_ATTR_PEN_COLOR<br> Pen color.</li><li>DC_ATTR_BRUSH_TYPE<br> Brush type.</li><li>DC_ATTR_BRUSH_COLOR<br> Brush color.</li><li>DC_ATTR_TEXT_COLOR<br> Text color.</li><li>DC_ATTR_TAB_STOP<br> Tabstop width.</li></ul><p><dl compact><dt><b>Returns:</b></dt><dd>The attribute value.</dd></dl><dl compact><dt><b>Note:</b></dt><dd>Only defined for _USE_NEWGAL.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__dc__attrs.htm#ga1">SetDCAttr</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga2" doxytag="gdi.h::GetRasterOperation"></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 GetRasterOperation </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="mdname1" valign="top" nowrap> <em>hdc</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Gets the raster operation of a DC. <p>This function gets the raster operation of the DC <em>hdc</em>.<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> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The current raster operation 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>ROP_SET\n</em> </td><td>Set to the new pixel value, erase original pixel on the surface. </td></tr> <tr><td valign="top"></td><td valign="top"><em>ROP_AND\n</em> </td><td>AND'd the new pixel value with the original pixel on the surface. </td></tr> <tr><td valign="top"></td><td valign="top"><em>ROP_OR\n</em> </td><td>OR'd the new pixel value with the original pixel on the surface. </td></tr> <tr><td valign="top"></td><td valign="top"><em>ROP_XOR\n</em> </td><td>XOR'd the new pixel value with the original pixel on the surface.</td></tr> </table></dl><dl compact><dt><b>Note:</b></dt><dd>Only defined for _USE_NEWGAL.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__dc__attrs.htm#ga3">SetRasterOperation</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga1" doxytag="gdi.h::SetDCAttr"></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"><a class="el" href="group__basic__types.htm#ga4">Uint32</a> GUIAPI SetDCAttr </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>attr</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__basic__types.htm#ga4">Uint32</a> </td> <td class="mdname" nowrap> <em>value</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>Sets a specified attribute value of a DC. <p>This function sets a specified attribute value of the DC <em>hdc</em>.<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>attr</em> </td><td>The attribute to be set. </td></tr> <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>The attribute value. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The old attribute value.</dd></dl><dl compact><dt><b>Note:</b></dt><dd>Only defined for _USE_NEWGAL.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__dc__attrs.htm#ga0">GetDCAttr</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga3" doxytag="gdi.h::SetRasterOperation"></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 SetRasterOperation </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>rop</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>Sets the raster operation of a DC to a new value. <p>This function sets the raster operation of the DC <em>hdc</em> to the new value <em>rop</em>.<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>rop</em> </td><td>The new raster operation, can be one of the following values:</td></tr> </table></dl><ul><li>ROP_SET<br> Set to the new pixel value, erase original pixel on the surface.</li><li>ROP_AND<br> AND'd the new pixel value with the original pixel on the surface.</li><li>ROP_OR<br> OR'd the new pixel value with the original pixel on the surface.</li><li>ROP_XOR<br> XOR'd the new pixel value with the original pixel on the surface.</li></ul><p><dl compact><dt><b>Returns:</b></dt><dd>The old raster operation of the DC <em>hdc</em>.</dd></dl><dl compact><dt><b>Note:</b></dt><dd>Only defined for _USE_NEWGAL.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__dc__attrs.htm#ga2">GetRasterOperation</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 + -