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

📄 group__clip__fns.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 2 页
字号:
        <tr>          <td class="md" nowrap valign="top"><a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI PtVisible           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga2">HDC</a>&nbsp;</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&nbsp;</td>          <td class="mdname" nowrap> <em>x</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>y</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Checks whether a point is visible. <p>This function checks whether the point specified by <em></em>(x,y) is visible, i.e. it is within the current visible clipping region of the device context <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>&nbsp;</td><td>The device context. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td>x,y: The coordinates of the point. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>x,y: The coordinates of the point. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE for visible, else for not.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__clip__fns.htm#ga7">RectVisible</a>, <a class="el" href="group__region__fns.htm">Region operations</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga7" doxytag="gdi.h::RectVisible"></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__simple__types.htm#ga0">BOOL</a> GUIAPI RectVisible           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga2">HDC</a>&nbsp;</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>const <a class="el" href="struct__RECT.htm">RECT</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>pRect</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Checks whether the specified rectangle is visible. <p>This function checks whether the rectangle pointed to by <em>pRect</em> is visible, i.e. it is intersected with the current visible region of the device context <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>&nbsp;</td><td>The device context. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>pRect</em>&nbsp;</td><td>Pointer to the rectangle.</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__clip__fns.htm#ga2">PtVisible</a>, <a class="el" href="group__region__fns.htm">Region operations</a></dd></dl>Example:<p><div class="fragment"><pre class="fragment"><span class="comment">/*</span><span class="comment"> * Use RectVisible to optimize the repaint of the window.</span><span class="comment"> */</span><a class="code" href="group__paint__msgs.htm#ga3">MSG_PAINT</a>:{        <a class="code" href="group__handles.htm#ga2">HDC</a> hdc = <a class="code" href="group__window__general__fns.htm#ga30">BeginPaint</a> (hWnd);        <span class="keywordflow">for</span> (j = 0; j &lt; 10; j ++) {                <span class="keywordflow">if</span> (<a class="code" href="group__clip__fns.htm#ga7">RectVisible</a>  (hdc, rcs + j)) {                        <a class="code" href="group__draw__fns.htm#ga40">FillBox</a> (hdc, rcs[j].left, rcs[j].top, rcs [j].right, rcs [j].bottom);                }        }        <a class="code" href="group__window__general__fns.htm#ga31">EndPaint</a> (hWnd, hdc);        <span class="keywordflow">return</span> 0;}</pre></div>     </td>  </tr></table><a class="anchor" name="ga4" doxytag="gdi.h::SelectClipRect"></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">void GUIAPI SelectClipRect           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga2">HDC</a>&nbsp;</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>const <a class="el" href="struct__RECT.htm">RECT</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>prc</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Sets the visible region of a DC to be a rectangle. <p>This function sets the visible region of the device context <em>hdc</em> to the rectangle pointed to by <em>prc</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>&nbsp;</td><td>The device context. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>prc</em>&nbsp;</td><td>Pointer to the rectangle.</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__clip__fns.htm#ga5">SelectClipRegion</a>, <a class="el" href="group__region__fns.htm">Region operations</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga5" doxytag="gdi.h::SelectClipRegion"></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">void GUIAPI SelectClipRegion           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga2">HDC</a>&nbsp;</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>const <a class="el" href="struct__CLIPRGN.htm">CLIPRGN</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>pRgn</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Sets the visible region of a DC to be a region. <p>This function sets the visible region of the device context <em>hdc</em> to the region pointed to by <em>pRgn</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>&nbsp;</td><td>The device context. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>pRgn</em>&nbsp;</td><td>Pointer to the region.</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__clip__fns.htm#ga4">SelectClipRect</a>, <a class="el" href="group__region__fns.htm">Region operations</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&nbsp;<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 + -