调试的时候发现 Common Control 6.0 的 DLL 已经加载到进程中了,但是效果就是出不来啊,这是怎么回事?
看看3721的cnsmain那个dll是怎么做的,用pe explorer资源软件看看
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.
Using Windows XP Visual Styles
DLL 文件加进去以后好象不起作用啊?
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.