VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: ExtSelectClipRgn(É豸³¡¾°)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:36:50 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ catchy Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Sun Apr 2 23:56:33 2000) WWW-POST
ExtSelectClipRgn
VBÉùÃ÷
Declare Function ExtSelectClipRgn Lib "gdi32" Alias "ExtSelectClipRgn" (ByVal
hdc As Long, ByVal hRgn As Long, ByVal fnMode As Long) As Long
˵Ã÷
½«Ö¸¶¨ÇøÓò×éºÏµ½É豸³¡¾°µÄµ±Ç°¼ô²ÃÇø
·µ»ØÖµ
Long£¬·µ»ØÏÂÁг£ÊýÖ®Ò»£¬ÒÔÃèÊöËùµÃ¼ô²ÃÇø£º
COMPLEXREGION£ºÇøÓò±ß½ç»¥Ïཻµþ
SIMPLEREGION£ºÇøÓò±ß½çûÓл¥Ïཻµþ
NULLREGION£ºÇøÓòΪ¿Õ
ERRORAPI£º·¢ÉúÁË´íÎó
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
hdc Long£¬¼ô²ÃÇø½«±»Ð޸ĵÄÉ豸³¡¾°µÄ¾ä±ú
hRgn Long£¬Ô´ÇøÓò¾ä±ú¡£ÈôfnModeΪRGN_COPY£¬Ëü¿ÉΪNULL
fnMode Long£¬ÏÂÁг£ÊýÖ®Ò»£º
RGN_AND мô²ÃÇø°üÀ¨¼´ÊôhRgnÓÖÊôµ±Ç°¼ô²ÃÇøµÄ²¿·Ö
RGN_COPY мô²ÃÇøΪhRgnÇøÓò
RGN_DIFF мô²ÃÇøΪµ±Ç°¼ô²ÃÇø³ýµôÆäÔÚhRgnÇøÄڵIJ¿·Ö
RGN_OR мô²ÃÇø°üÀ¨ÊôhRgn»òµ±Ç°Êôµ±Ç°¼ô²ÃÇøµÄ²¿·Ö
RGN_XOR мô²ÃÇø°üÀ¨ÊôhRgn»òµ±Ç°Êôµ±Ç°¼ô²ÃÇøµÄ²¿·Ö£¬µ«Òª³ýȥͬÊôÁ½ÕߵIJ¿·Ö
×¢½â
±¾º¯Êý¶ÔhRgnÇøÓòûÓÐÓ°Ï죬ִÐкó¿É»ÙÈ¥£¨destroy£©¸ÃÇøÓò
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn£®[FROM: casi.bbs@smth.org]
--
¡ù תÔØ:£®¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn£®[FROM: 202.118.247.254]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º3.375ºÁÃë