代码改变世界

怎样让你的密码字符显示为XP的黑色圆球

2004-09-23 20:54  atempcode  阅读(1434)  评论(0编辑  收藏  举报
Ninputer talked about how to show '.' instead of  '*' for password edit control.
Here is another way.

Add xxx.exe.manifest with the content below to the directory of the xxx.exe:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly
    
xmlns="urn:schemas-microsoft-com:asm.v1"
    manifestVersion
="1.0">

    
<dependency>
        
<dependentAssembly>
            
<assemblyIdentity
                
type="win32"
                name
="Microsoft.Windows.Common-Controls"
                version
="6.0.0.0"
                publicKeyToken
="6595b64144ccf1df"
                language
="*"
                processorArchitecture
="x86"/>
        
</dependentAssembly>
    
</dependency>
</assembly>

Of cource, this only works under XP. But how come display XP style in none-XP OS?
Detail information: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwxp/html/xptheming.asp