VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: SetAbortProc(´òÓ¡º¯Êý)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:41:09 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ bloom Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Sat Apr 8 01:39:56 2000) WWW-POST
SetAbortProc
VBÉùÃ÷
Declare Function SetAbortProc Lib "gdi32" Alias "SetAbortProc" (ByVal hDC As
Long, ByVal lpAbortProc As Long) As Long
˵Ã÷
ÎÒÃÇ¿ÉÒÔΪWindowsÌṩһ¸öÌØÊâµÄº¯Êý£¬ÁîÆäÔÚÀ©Õ¹´òÓ¡²Ù×÷¹ý³ÌÖе÷Óá£Õâ¸öº¯Êý½Ð
¡°È¡Ïûº¯Êý¡±¡£Æä½á¹û¸æËßWindowsÊǼÌÐø´òÓ¡²Ù×÷£¬»¹ÊÇÁ¢¼´È¡Ïû
SetAbortProcº¯ÊýµÄ×÷ÓÃÊÇΪwindowsÖ¸¶¨È¡Ïûº¯ÊýµÄµØÖ·¡£ÓÉÓÚVB²»Ö§³Öº¯ÊýµØÖ·µÄ¸Å
ÄËùÒÔҪʹÓÃÌض¨µÄͨÓûص÷¶¨Öƿؼþ£¬·ñÔò¾Í²»ÄÜʹÓÃÕâ¸öº¯Êý
·µ»ØÖµ
Long£¬Èç½á¹û´óÓÚÁ㣬±íʾִÐгɹ¦£»SP_ERROR±íʾ³ö´í¡£»áÉèÖÃGetLastError
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
hDC Long£¬Ò»¸öÉ豸³¡¾°µÄ¾ä±ú¡£
lpAbortProc Long£¬Ò»¸öÈ¡Ïûº¯ÊýµÄµØÖ·
ÔÚVBÀïʹÓÃ
ÈçËæͬVBµÄ´òÓ¡»ú¶ÔÏóʹÓÃÕâ¸öº¯Êý£¬¾Í¿ÉÄܸÉÈÅÕý³£µÄVB´òÓ¡»úÖÆ¡£Õâ¸öº¯ÊýµÄÈ·¿ÉÒÔ
ÔÚVB»·¾³ÖÐʹÓ㬵«ÓпÉÄÜÔì³É´òÓ¡»ú³ö´í¡£Òò´Ë£¬ÔÚÏÂÒ»´ÎʹÓÃPrinter.NewPage·½·¨
µÄʱºò£¬ÓбØÒªÓÃÊʵ±µÄ»úÖƲ¶»ñÕâÖÖ´íÎó¡£Èç¹ûÔÚ×Ô¼ºµÄ³ÌÐòÖÐΪVBµÄPrinter¶ÔÏóÉè
ÖÃÁËÒ»¸öÈ¡Ïûº¯Êý£¬ÄÇô½¨ÒéÄúÍêÕû²âÊÔ´úÂë
Èç¹ûÔÚ×Ô¼º´´½¨µÄÒ»¸öÉ豸³¡¾°ÖдòÓ¡£¬ÄÇôÕâ¸öº¯ÊýµÄʹÓÃûÓÐË¿ºÁÎÊÌâ
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã 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)
Ò³ÃæÖ´ÐÐʱ¼ä£º3.642ºÁÃë