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

📄 group__dc__attrs.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 3 页
字号:
      &nbsp;    </td>    <td><p>Gets the text 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 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>GetDCAttr</em> for _USE_NEWGAL. If _USE_NEWGAL is not defined, <em>GetTextColor</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#ga32">SetTextColor</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l02143">2143</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga28" doxytag="gdi.h::SetBkColor"></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 SetBkColor          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">hdc,         <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>color&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;SetDCAttr (hdc, DC_ATTR_BK_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>      &nbsp;    </td>    <td><p>Sets the background 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>&nbsp;</td><td>The device context. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>color</em>&nbsp;</td><td>The new background color (pixel value). </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The old 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>SetDCAttr</em> for _USE_NEWGAL. If _USE_NEWGAL is not defined, <em>SetBkColor</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#ga22">GetBkColor</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l02174">2174</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga29" doxytag="gdi.h::SetBkMode"></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 SetBkMode          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">hdc,         <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>mode&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;SetDCAttr (hdc, DC_ATTR_BK_MODE, (<a class="el" href="group__win32__types.htm#ga4">DWORD</a>) mode)</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Sets the background color of a DC to a new mode. <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>    <tr><td valign="top"></td><td valign="top"><em>mode</em>&nbsp;</td><td>The new background mode, be can one of the following values:</td></tr>  </table></dl><ul><li>BM_TRANSPARENT<br> Indicate that reserve the background untouched when drawing text.</li><li>BM_OPAQUE<br> Indicate that erase the background with background color when drawing text.</li></ul><p><dl compact><dt><b>Returns:</b></dt><dd>The old background mode 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>SetBkMode</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#ga23">GetBkMode</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l02198">2198</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga31" doxytag="gdi.h::SetBrushColor"></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 SetBrushColor          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">hdc,         <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>color&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;SetDCAttr (hdc, DC_ATTR_BRUSH_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>      &nbsp;    </td>    <td><p>Sets the brush 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>&nbsp;</td><td>The device context. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>color</em>&nbsp;</td><td>The new brush color (pixel value). </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The old brush 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>SetBrushColor</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#ga25">GetBrushColor</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l02232">2232</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga30" doxytag="gdi.h::SetPenColor"></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 SetPenColor          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">hdc,         <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>color&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;SetDCAttr (hdc, DC_ATTR_PEN_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>      &nbsp;    </td>    <td><p>Sets the pen 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>&nbsp;</td><td>The device context. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>color</em>&nbsp;</td><td>The new pen color (pixel value). </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The old pen 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>SetPenColor</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#ga24">GetPenColor</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l02215">2215</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga33" doxytag="gdi.h::SetTabStop"></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 SetTabStop          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">hdc,         <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>value&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap>&nbsp;&nbsp;&nbsp;SetDCAttr (hdc, DC_ATTR_TAB_STOP, (<a class="el" href="group__win32__types.htm#ga4">DWORD</a>) value)</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Sets the tabstop 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>&nbsp;</td><td>The device context. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>The new tabstop value in pixels. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The old tabstop value in pixels 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>SetTabStop</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#ga27">GetTabStop</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l02266">2266</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga32" doxytag="gdi.h::SetTextColor"></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 SetTextColor          </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">hdc,         <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>color&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>

⌨️ 快捷键说明

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