VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: GetRegionData(É豸³¡¾°)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:38:39 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ catchy Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Sun Apr 2 23:59:40 2000) WWW-POST
GetRegionData
VBÉùÃ÷
Declare Function GetRegionData Lib "gdi32" Alias "GetRegionDataA" (ByVal hRgn
As Long, ByVal dwCount As Long, lpRgnData As RgnData) As Long
˵Ã÷
×°ÈëÃèÊöÒ»¸öÇøÓòÐÅÏ¢µÄRgnData½á¹¹»ò»º³åÇø
·µ»ØÖµ
Long£¬Èç¹û½á¹¹×ã¹»´óÒÔ×°ÈëÇøÓòµÄÊý¾Ý£¬·µ»Ø1£»³ö´íʱ·µ»Ø0¡£Èç¹ûlpRgnData²»¹»´ó
£¬²»ÄÜ×°ÈëÇøÓòÊý¾Ý£¬Ôò·µ»ØÐèÒªµÄ½á¹¹´óС
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
hRgn Long£¬°üº¬ÐÅÏ¢µÄÇøÓòµÄ¾ä±ú
dwCount Long£¬RgnData½á¹¹µÄ´óС
lpRgnData RgnData£¬Õâ¸ö½á¹¹ÓÃÒÔ×°ÈëÇøÓòÐÅÏ¢
×¢½â
RgnDataÊÇÒ»¸öÃèÊöÇøÓòµÄ¶¨³¤½á¹¹¡£BufferÊÇ´æ·ÅÇøÓòÊý¾ÝµÄ»º³åÇø¡£»º³åÇøʵ¼ÊÐèÒª
µÄ´óСȡ¾öÓÚÇøÓòµÄ¸´Ôӳ̶ȣ¨ÏÔÈ»£¬1×Ö½ÚÊÇÓÀÔ¶²»¹»µÄ£©¡£ÓÐÁ½¸öÑ¡Ôñ£º
1¡¢½«RgnDataÖض¨ÒåΪÓÀÔ¶²»»áÓõ½µÄÒ»¸ö´ó³ß´ç¡£ÕâÊÇÐèÒªµÄ£¬ÒòΪvb²»ÔÊÐí¶¯Ì¬Öض¨
Òå½á¹¹µÄ´óС
2¡¢·ÖÅäÒ»¸ö×Ö½ÚÊý×é²¢ÓÃËüÀ´´úÌæRgnData½á¹¹¡£ÕâÒªÇó½«As RgnData»»ÎªAs ByteÀ´¸Ä
±äº¯ÊýµÄAPIÉùÃ÷£¬²¢ÇÒ´«ËÍ×Ö½ÚÊý×éµÄµÚÒ»¸öÔªËØ
Èç¹ûÒÔºóÒª·ÃÎÊRGNDATAHEADER½á¹¹µÄÔªËØ£¬ÐèÒªÓÃÒ»¸öÄڴ濽±´Àý³Ì½«Êý¾Ý´Ó»º³åÇø¿½
±´µ½Ò»¸öÌرð¶¨ÒåµÄRGNDATAHEADER½á¹¹ÖÐ
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã 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)
Ò³ÃæÖ´ÐÐʱ¼ä£º4.693ºÁÃë