wpw_wapi_color_95.html

来自「VC programing」· HTML 代码 · 共 26 行

HTML
26
字号
<HTML>
<HR><A NAME=WINAPI_Color_opposite>
Return to <a href="wpw_wapi_index.html#TOC">Table of Contents for this chapter</a><br>
<H4>Subject: How to find the opposite color?</H4><PRE>

Dejan Jacic <djacic@mamef> wrote:

<snip>

>I have a grid-like window for which I'm drawing grid lines. This
>works really fine on my computer (i.e. mine choice of default background
>color in Control Panel). But, when friend of mine started it, he couldn't 
>see the grids, because grids were gray and he uses gray background as
>a default.

Take a look-see at the SetROP2 function - perhaps drawing with a white pen
in R2_XORPEN perhaps, or R2_NOTMERGEPEN.  I believe Petzold has some stuff
on this.

cps


</PRE> 

</HTML>

⌨️ 快捷键说明

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