RT

解决方案 »

  1.   

    不明,看看MSDN中的
    Using Windows XP Visual Styles
      

  2.   

    程序代码在 DLL 中,使用 rundll32 来启动。如果是 exe 文件的话就好说了,直接把 manifest 加到资源里面就可以了,但是
    DLL 文件加进去以后好象不起作用啊?
      

  3.   

    调试的时候发现 Common Control 6.0 的 DLL 已经加载到进程中了,但是效果就是出不来啊,这是怎么回事?
      

  4.   

    看看3721的cnsmain那个dll是怎么做的,用pe explorer资源软件看看
      

  5.   

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/userex/cookbook.asp
    Using ComCtl32 Version 6 in Control Panel or a DLL That Is Run by RunDll32.exe
    To create a manifest and enable your application to use visual styles.Link to ComCtl32.lib and call InitCommonControls.
    Add a file called YourApp.cpl.manifest to your source tree that has the XML manifest format. 
    Add the manifest to your application's resource file as resource ID 123. 
    Note  When you author a Control Panel application, place it in the appropriate category. Control Panel now supports categorization of Control Panel applications. This means that Control Panel applications can be assigned identifiers and separated into task areas such as Add or Remove Programs, Appearance and Themes, or Date, Time, Language, and Regional Options. 
      

  6.   

    可是为什么我把manifest(id=123)加进去以后一点效果都没有?另外,如果把id设置为2的话,系统连DllMain都还没调用就报错了,真是不明白。
      

  7.   

    对了最近搞ui,也发现了好像dll的外观资源定义那个manifest都是在程序外,不是在pe文件中的资源,你可以研究研究