»áÔ±£º ÃÜÂ룺 ¡¡Ãâ·Ñ×¢²á | Íü¼ÇÃÜÂë | »áÔ±µÇ¼ ÍøÒ³¹¦ÄÜ£º ¼ÓÈëÊÕ²Ø ÉèΪÊ×Ò³ ÍøÕ¾ËÑË÷  
¼¼ÊõÎĵµ > VBÎĵµ > ´°Ìå½çÃæ
VB³ÌÐòʵÏÖWindowsXPЧ¹ûµÄ½çÃæ
·¢±íÈÕÆÚ£º2004-08-31 22:58:44×÷Õߣº´ ³ö´¦£º  

  ËäÈ»WindowsXPµÄ½çÃæ·Ç³£»ªÀö¡£µ«ÊÇÁîÈËÒź¶µÄÊÇ£¬ÎÒÃÇÓÃVBдµÄ³ÌÐò³ýÁ˲˵¥ºÍ´°¿ÚµÄÍâ¹ÛÊÇXP·ç¸ñÍ⣬ÆäËû¿Ø¼þ»¹ÊÇÒ»Èç¼ÈÍùµÄÊÇÆÕͨ·ç¸ñ¡£ÎÒÏ룬ÓеijÌÐòÔÚXPÏÂÓÐXPµÄ·ç¸ñ£¬VBÒ²Ò»¶¨Óа취ʵÏÖXPµÄ·ç¸ñ¡£ºóÀ´±ÊÕßÔÚÍøÉÏ¿´µ½Ò»Æª½éÉÜXMLµÄÎÄÕ£¬ÓÖÔÚÍøÉÏÕÒµ½ÁËһƪʵÏÖXP·ç¸ñµÄÎÄÕ£¬¾­¹ý×Ô¼ºµÄʵ¼ù£¬ÖÕÓÚÕÒµ½ÁËVB³ÌÐòʵÏÖXP·ç¸ñµÄ°ì·¨¡£ÎªÁËʹÆäËûµÄÍøÓѲ»ÖÁÓÚ×ßÏñÎÒÕâÑùµÄ¶àµÄÍä·£¬½«´Ë°ì·¨Ð´³öÀ´£¬Óë´ó¼Ò¹²Í¬Ìá¸ß£¡£¡
  ×÷Õߣº´ÞÕ¼Ãñ
  Email£ºCuiZM@163.com

    ¾ßÌåµÄʵÏÖ·½·¨ÈçÏ£º

    ¢Ù£ºÔÚÄãµÄ´°Ìå¼ÓÈë´úÂë¡£Èç¹ûÊǶà¸ö´°¿Ú£¬¿ÉÒÔ½«´Ë´úÂë·Åµ½Ä£¿éÖС£

    ´úÂëÈçÏ£º


    'ÉùÃ÷APIº¯Êý

    Private Declare Sub InitCommonControls Lib "comctl32.dll" ()

    Private Sub Form_Initialize()

        InitCommonControls

    End Sub

 

    ×¢Ò⣺ǧÍò²»ÒªÔÚForm_load()ʼþÏÂдInitCommonControlsÕâ¾ä»°£¬·ñÔòÄãµÄ´°Ìå»áÆô¶¯²»ÁË¡££¨²»Òª¹ÖÎÒû¸æËßÄã°¡~~~~£©

    ¢Ú£º½¨Á¢Ò»¸öºÍÄãµÄ.exeͬÃûµÄ.exe.manifestÎļþ£¨¼ÙÈ磺Èç¹ûÄã×îºó±àÒëºÃµÄÎļþÃûΪWindowXPStyle.exe£¬Ôò½¨Á¢Ò»¸öÎļþÃûΪWindowXPStyle.exe.manifestµÄÎļþ£©£¬²¢ÇÒ´ËÎļþ±ØÐë´æÔÚÓÚºÍÄãExeÎļþµÄͬһĿ¼Ï¡£

    ÒÔWindowXPStyle.exeΪÀý£¬ÔòÕâ¸öWindowXPStyle.exe.manifestµÄÎļþµÄÄÚÈÝÈçÏ£º


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">

<assemblyIdentity

version="1.0.0.0"

processorArchitecture="X86"

name="CompanyName.ProductName.YourApp"

type="win32"

/>

<description>Your application description here.</description>

<dependency>

<dependentAssembly>

<assemblyIdentity

type="win32"

name="Microsoft.Windows.Common-Controls"

version="6.0.0.0"

processorArchitecture="X86"

publicKeyToken="6595b64144ccf1df"

language="*"

/>

</dependentAssembly>

</dependency>

</assembly>



    ½«ÒÔÉÏÄÚÈݱ£´æΪWindowXPStyle.exe.manifest¡£²¢ÇÒºÍÖ´ÐÐÎļþ·ÅÔÚÒ»¸öĿ¼Ï£¨Ò»¶¨Òª¼Çס£©¡£

    µ½´ËΪֹ£¬ÎÒÃǵijÌÐòÒѾ­Íê³É£¬²»¹ýÔÚVBµÄÉè¼Æ»·¾³ÏÂÔËÐÐÊÇ¿´²»µ½XPЧ¹ûµÄ¡£±ØÐë±àÒë³É¿ÉÖ´ÐÐÎļþÔËÐвſÉÒÔ¡££¨ÒòΪÕâ¸öÎÒÊÔÁ˲»Öª¶àÉٱ飬ÒÔΪVB³ÌÐò¾ÍÊÇʵÏÖ²»ÁËXPЧ¹ûÄØ~~£¬Ã»Ïëµ½±ØÐë±àÒë³ÉÖ´ÐÐÎļþ²Å¿ÉÒÔ£©¡£

    ÔËÐÐЧ¹ûÈçÏÂͼËùʾ£º

     ÏàÐÅ´ó¼ÒÒ²¿´µ½Á˲»×ãÖ®´¦£¬¾ÍÊÇ·ÅÔÚFRAME¿Ø¼þÖеĵ¥Ô¶°´Å¥ÓÐЩ¡°Âé·³¡±£¡ÎªÁ˽â¾ö´ËÎÊÌ⣬¿ÉÒÔ½«µ¥Ñ¡°´Å¥·ÅÔÚPICTURE¿Ø¼þÖУ¨ÒÔPICTURE¿Ø¼þ×÷ΪÈÝÆ÷£©£¬ÔÙ½«PICTURE¿Ø¼þ·ÅÔÚFRAME¿Ø¼þÖУ¬¾Í¿ÉÒÔÁË¡£¡¡

  ³£¼ûÎÊÌâºÍ×¢ÒâÊÂÏî

    ÓÉÓÚVB6×ÔÉíµÄÔ­Òò£¬Windows XPÔÙÒ»´Î¸øÎÒÃÇÁôÁËһЩÄÑÌ⣺

    Ò»¡¢¹¤¾ßÀ¸ÎÊÌ⣺¹¤¾ßÀ¸¿Ø¼þÒ»¶¨ÒªÓÃMicrosoft Windows Common Controls 5.0£¬¶ø²»ÒªÓÃMicrosoft Windows Common Controls 6.0¡£ÒòΪ´ËInitCommonControls APIº¯ÊýÊÇλÓÚcomctl32.dll£¨Microsoft Windows Common Controls 5.0¿Ø¼þµÄ¶¯Ì¬Á´½Ó¿âÖУ©¡£

    ¶þ¡¢Í¼Ðηç¸ñ°´Å¥µÄÎÊÌ⣺ºÜÒź¶£¬ÎÒÃDz»ÄÜÔÙʹÓÃGraphical·ç¸ñµÄÃüÁî°´Å¥£¨¼´Style=1µÄÃüÁî°´Å¥¿Ø¼þ£©ÁË¡£ÒòΪһµ©½«ÃüÁî°´Å¥µÄStyleÊôÐÔÉèΪ1£¬ÄÇôËü½«Ê§È¥Windows XP·ç¸ñ¡£

    ֻҪעÒâÒÔÉϼ¸µã£¬²¢²ÉÈ¡ÏàÓ¦µÄ´ëÊ©£¬VB±àдµÄ³ÌÐòÔÚWindows XPÖп´ÉÏÈ¥»¹ÊǺܻªÀöµÄ£¡ÈçÏÂͼËùʾ£º

    ×¢£ºÆäËüÓïÑÔдµÄ³ÌÐòÒ²ÊÇÒ»Ñù£¬ÊµÏÖÆðÀ´²»»áÓÐVBÕâô¶àµÄÎÊÌâ¡£ÈçDELPHI¡¢VCµÈ£¬Á¬APIº¯Êý¶¼¿ÉÒÔÖ±½ÓʹÓ㬲»ÓÃÊÂÏÈÉùÃ÷¡£Ïà¶ÔÀ´Ëµ¸ü¼òµ¥£¡
 

¡¾·µ»Ø¶¥²¿¡¿ ¡¾´òÓ¡±¾Ò³¡¿ ¡¾¹Ø±Õ´°¿Ú¡¿

¹ØÓÚÎÒÃÇ / ¸øÎÒÁôÑÔ / °æȨ¾Ù±¨ / Òâ¼û½¨Òé / ÍøÕ¾±à³ÌQQȺ   
Copyright ©2003- 2024 Lihuasoft.net webmaster(at)lihuasoft.net ¼ÓÔØʱ¼ä 0.00377