Visual Basic_ÃÀ»¯ÄãµÄÎÄ×Ö_VB.net_ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤»ùµØ--Powered by WWW.RONGSEN.COM.CN

Visual Basic_ÃÀ»¯ÄãµÄÎÄ×Ö

×÷ÕߣººÚ¿Í·ÀÏßÍø°²VB½Ì³Ì»ùµØ À´Ô´£ººÚ¿Í·ÀÏßÍø°²VB½Ì³Ì»ùµØ ä¯ÀÀ´ÎÊý£º0

±¾Æª¹Ø¼ü´Ê£ºÎÄ×ÖÃÀ»¯LongByVal
ºÚ¿Í·ÀÏßÍø°²ÍøѶ£º¡¡¡¡ÏëÍæµãÎÄ×ÖºáÏòÀ­¿íµÄÌØЧÂ𣿺ܼòµ¥£¬Äã²»ÐèҪȥ¼ÆËãʲô Width + 1 Ö®ÀàµÄÏóËØÖµ£¬Ö»Ðèµ÷ÓÃÒ»¸ö API º¯Êý£¬¾Í¿ÉÒԸ㶨£¡Ëý¾ÍÊÇ¡ª¡ªSetTextCharacterExtra() ¡¡¡¡Õâ¸öº¯ÊýµÄ×÷ÓÃÊǸıä...

¡¡¡¡ÏëÍæµãÎÄ×ÖºáÏòÀ­¿íµÄÌØЧÂ𣿺ܼòµ¥£¬Äã²»ÐèҪȥ¼ÆËãʲô 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 ´°ÌåÖÐÈ¥£¬Ò»¶¨ºÜ²»´í°É¡£ÎÒ±£Ö¤ËٶȺÍ×ÊÔ´ÏûºÄ¶¼ÒªÓÅÓÚÄÇÖÖ¿ØÖÆÏóËؼӼõµÄ·½·¨¡£ºÃÁË£¬½ñ¶ù¾Í˵µ½Õâ¶ù£¬°³È¥Ò²£¡

    ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤·½°¸±¾ÆªÁ¬½Ó£ºhttp://www.rongsen.com.cn/show-14662-1.html
Íøվά»¤½Ì³Ì¸üÐÂʱ¼ä:2012-04-03 01:12:04  ¡¾´òÓ¡´ËÒ³¡¿  ¡¾¹Ø±Õ¡¿
ÎÒÒªÉêÇë±¾Õ¾£ºNµã | ºÚ¿Í·ÀÏß¹ÙÍø |  
רҵ·þÎñÆ÷ά»¤¼°Íøվά»¤ÊÖ¹¤°²È«´î½¨»·¾³£¬ÍøÕ¾°²È«¼Ó¹Ì·þÎñ¡£ºÚ¿Í·ÀÏßÍø°²·þÎñÆ÷ά»¤»ùµØÕÐÉ̽øÐÐÖУ¡QQ:29769479

footer  footer  footer  footer