¡¡¡¡ÏëÍæµãÎÄ×ÖºáÏòÀ¿íµÄÌØЧÂ𣿺ܼòµ¥£¬Äã²»ÐèҪȥ¼ÆËãʲô Width + 1 Ö®ÀàµÄÏóËØÖµ£¬Ö»Ðèµ÷ÓÃÒ»¸ö API º¯Êý£¬¾Í¿ÉÒԸ㶨£¡Ëý¾ÍÊÇ¡ª¡ªSetTextCharacterExtra()
¡¡¡¡Õâ¸öº¯ÊýµÄ×÷ÓÃÊǸıä×Ö·û´®Öи÷×Ö·ûµÄ¼ä¸ô´óС¡£ÏëÈ¥¿ª API Viewer ÁËÂð£¿ÇÒÂý£¡API Viewer ÖжԴ˺¯ÊýµÄÉùÃ÷ÓÐÎÊÌ⣡£¡£¡Ôõô¸ãµÄ£¿²»ÖªµÀ£¬ÎÊ΢ÈíÈ¥°É¡£
¡¡¡¡API Viewer µÄÉùÃ÷£ºPrivate Declare Function SetTextCharacterExtra Lib gdi32 Alias SetTextCharacterExtraA (ByVal hdc As Long, ByVal nCharExtra As Long) As Long
¡¡¡¡Ó¦¸ÃÊÇ£ºPrivate Declare Function SetTextCharacterExtra Lib gdi32 (ByVal hdc As Long, ByVal nCharExtra As Long) As Long
¡¡¡¡¼´£ºAPI Viewer Öжà¼ÓÁËÔÚ gdi32.dll ÖеÄÈë¿Ú£¨SetTextCharacterExtraA£©£¬²»ÐÅÄãÊÔÊÔ£¬×¼Ëµ¡°Èë¿Úº¯ÊýÕÒ²»µ½¡±¡£ºÃÁË£¬ÖªµÀÁËÎÊÌâ¾ÍºÃ°ìÁË£¬ÄãÏÈ×¼±¸Ò»¸ö PictureBox °É£¬ÎÒÃǾÍÓÃËüµÄ hDC¡£
Private I As Long
Private Sub Timer1_Timer()
¡¡¡¡Timer1.Interval = 100
¡¡¡¡With Picture1
¡¡¡¡¡¡¡¡.Cls
¡¡¡¡¡¡¡¡SetTextCharacterExtra .hdc, I
¡¡¡¡¡¡¡¡Picture1.Print Midnight
¡¡¡¡¡¡¡¡I = I + 1
¡¡¡¡¡¡¡¡If I >= 30 Then I = 1
¡¡¡¡End With
End Sub
¡¡¡¡µ±È»£¬ÎÒÕâÀïÓõÄÊÇ Timer£¬ÄãÈç¹û¾õµÃ CPU Õ¼ÓÃÂÊÌ«¸ßµÄ»°£¬¾Í×Ô¼º¸ÄÂ±ÈÈç˵¼ÓÔÚÒ»¸öÑ»·ÖУ¬ÓÃϵͳʱÖ Timer ÖµÀ´¿ØÖƼä¸ôʱ¼ä¾ÍÐÐÁË¡£
¡¡¡¡×îºó£¬ÃÀ»¯ÄãµÄ PictureBox£¬¸ÄÒ»¸öºÃ¿´µÄ×ÖÌå¡¢ÐÑÄ¿µÄÑÕÉ«£¬ÉõÖÁÔÚÑ»·ÖиıäÑÕÉ«ºÍ×ÖÌå´óС¡¢Óà Step ֵʹËü×óÓÒÑ»·ÀÉìµÈµÈ£¬ËæÄãÔõô¸Ä£¡
¡¡¡¡ÔõôÑù£¿Õâ¸ö¶«¶«¼Óµ½ÄãµÄ About ´°ÌåÖÐÈ¥£¬Ò»¶¨ºÜ²»´í°É¡£ÎÒ±£Ö¤ËٶȺÍ×ÊÔ´ÏûºÄ¶¼ÒªÓÅÓÚÄÇÖÖ¿ØÖÆÏóËؼӼõµÄ·½·¨¡£ºÃÁË£¬½ñ¶ù¾Í˵µ½Õâ¶ù£¬°³È¥Ò²£¡