VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: CreateRoundRectRgn(É豸³¡¾°)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:35:52 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ catchy Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Sun Apr 2 23:54:12 2000) WWW-POST
CreateRoundRectRgn
VBÉùÃ÷
Declare Function CreateRoundRectRgn Lib "gdi32" Alias "CreateRoundRectRgn"
(ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long,
ByVal X3 As Long, ByVal Y3 As Long) As Long
˵Ã÷
´´½¨Ò»¸öÔ²½Ç¾ØÐΣ¬¸Ã¾ØÐÎÓÉX1£¬Y1-X2£¬Y2È·¶¨£¬²¢ÓÉX3£¬Y3È·¶¨µÄÍÖÔ²ÃèÊöÔ²½Ç»¡¶È
·µ»ØÖµ
Long£¬Ö´Ðгɹ¦ÔòΪÇøÓò¾ä±ú£¬Ê§°ÜÔòΪ0
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
X1,Y1 Long£¬¾ØÐÎ×óÉϽǵÄX£¬Y×ø±ê
X2,Y2 Long£¬¾ØÐÎÓÒϽǵÄX£¬Y×ø±ê
X3 Long£¬Ô²½ÇÍÖÔ²µÄ¿í¡£Æ䷶Χ´Ó0£¨Ã»ÓÐÔ²½Ç£©µ½¾ØÐÎ¿í£¨È«Ô²£©
Y3 Long£¬Ô²½ÇÍÖÔ²µÄ¸ß¡£Æ䷶Χ´Ó0£¨Ã»ÓÐÔ²½Ç£©µ½¾ØÐθߣ¨È«Ô²£©
×¢½â
²»ÓÃʱһ¶¨ÒªÓÃDeleteObjectº¯Êýɾ³ý¸ÃÇøÓò
Óøú¯Êý´´½¨µÄÇøÓòÓëÓÃRoundRect APIº¯Êý»µÄÔ²½Ç¾ØÐβ»ÍêÈ«Ïàͬ£¬ÒòΪ±¾¾ØÐεÄÓÒ
±ßºÍϱ߲»°üÀ¨ÔÚÇøÓòÖ®ÄÚ
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã 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)
Ò³ÃæÖ´ÐÐʱ¼ä£º1.996ºÁÃë