VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: RoundRect(É豸³¡¾°)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:40:59 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ bloom Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Mon Apr 3 00:07:49 2000) WWW-POST
RoundRect
VBÉùÃ÷
Declare Function RoundRect Lib "gdi32" Alias "RoundRect" (ByVal hdc As Long,
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
˵Ã÷
Óõ±Ç°Ñ¡¶¨µÄ»±Ê»Ò»¸öÔ²½Ç¾ØÐΣ¬²¢Óõ±Ç°Ñ¡¶¨µÄË¢×ÓÔÚÆäÖÐÌî³ä¡£X3ºÍY3¶¨ÒåÁËÓÃÓÚ
Éú³ÉÔ²½ÇµÄÍÖÔ²
·µ»ØÖµ
Long£¬·ÇÁã±íʾ³É¹¦£¬Áã±íʾʧ°Ü¡£»áÉèÖÃGetLastError
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
hdc Long£¬ÓÃÓÚ»æͼµÄÉ豸³¡¾°
X1,Y1 Long£¬¶Ô¾ØÐÎ×óÉϽÇλÖýøÐÐ˵Ã÷µÄX£¬Y×ø±ê
X2,Y2 Long£¬¶Ô¾ØÐÎÓÒϽÇλÖýøÐÐ˵Ã÷µÄX£¬Y×ø±ê
X3 Long£¬ÓÃÓÚÉú³ÉÔ²½ÇЧ¹ûµÄÒ»¸öÍÖÔ²µÄ¿í¶È¡£È¡Öµ·¶Î§´ÓÁ㣨±íʾ²»¼ÓÔ²½Ç£©£¬Ò»Ö±
µ½¾ØÐεĿí¶È£¨È«Ô²£©
Y3 Long£¬ÓÃÓÚÉú³ÉÔ²½ÇЧ¹ûµÄÒ»¸öÍÖÔ²µÄ¸ß¶È¡£È¡Öµ·¶Î§´ÓÁ㣨±íʾ²»¼ÓÔ²½Ç£©£¬Ò»Ö±
µ½¾ØÐεĸ߶ȣ¨È«Ô²£©
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn£®[FROM: blo0m.bbs@smth.org]
--
¡ù תÔØ:£®¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn£®[FROM: 202.118.247.254]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º2.177ºÁÃë