VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: ScrollDC(É豸³¡¾°)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:41:01 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ bloom Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Mon Apr 3 00:07:00 2000) WWW-POST
ScrollDC
VBÉùÃ÷
Declare Function ScrollDC Lib "user32" Alias "ScrollDC" (ByVal hdc As Long,
ByVal dx As Long, ByVal dy As Long, lprcScroll As RECT, lprcClip As RECT,
ByVal hrgnUpdate As Long, lprcUpdate As RECT) As Long
˵Ã÷
ÔÚ´°¿Ú£¨ÓÉÉ豸³¡¾°´ú±í£©ÖÐˮƽºÍ£¨»ò£©´¹Ö±¹ö¶¯¾ØÐÎ
·µ»ØÖµ
Long£¬Ö´Ðгɹ¦Îª·ÇÁãÖµ£¬Ê§°ÜΪ0£¬²¢ÉèÖÃGetLastError
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
hdc Long£¬É豸³¡¾°¾ä±ú
dx Long£¬½«¹ö¶¯µÄˮƽµ¥Î»
dy Long£¬½«¹ö¶¯µÄ´¹Ö±µ¥Î»
lprcScroll RECT£¬Òª¹ö¶¯µÄ¾ØÐÎ
lprcClip RECT£¬¶¨Òå¼ô²ÃÇøµÄ¾ØÐΣ¬¹ö¶¯Ö»ÄÜÔÚ¸ÃÇøÄÚ½øÐÐ
hrgnUpdate Long£¬¸ÃÇøÓòÉèÖÃΪ¿Í»§×ø±êϵͳÖв»±»¹ö¶¯²Ù×÷¸²¸ÇµÄÇø£¬Ò²¿ÉΪ0£¬Ôò±í
ʾûÓÐÉèÖÃË¢ÐÂÇøÓò
lprcUpdate RECT£¬¸Ã¾ØÐÎΪ¿Í»§×ø±êϵͳÖв»±»¹ö¶¯²Ù×÷¸²¸ÇµÄÇø£¬Ò²¿ÉΪ0£¨ÒªÇóÐÞ¸Ä
vbÉùÃ÷ʹ֮ÄܽÓÊÕlprcUpdateΪ³¤ÕûÐͲÎÊý£©
×¢½â
ÈôhrgnUpdateºÍlprcUpdate¶¼ÎªNULL£¬windows½«²»ÄÜΪ¸ÃDC¼ÆËãË¢ÐÂÇø
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã 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.125ºÁÃë