热情软件屋

 

如何激活控制面板中的属性


编号:QA000046
建立日期: 1998年6月1日 最后修改日期:1998年6月1日
所属类别:

忻孝委:
    如何在VC++ 5.0中激活控制面板中的属性?

回答:

    调用控制面板的属性对话框比较简单。在Shell32.dll中有一个函数Control_RunDLL,该函数可以激活控制面板的属性对话框。不过调用这个函数通常借助Windows 95的命令行命令rundll32.exe。rundll32.exe在Windows 95目录下,它可以用来调用DLL中的函数。例如,要调用控制面板中的Modem属性,执行下面的命令就行了:
     rundll32.exe shell32.dll,Control_RunDLL modem.cpl
     常用的还有以下这些:
     桌面属性:
     背景: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0
     外观:rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,2
     屏幕保护程序:rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,1
     设置:rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,3
    
     常规:rundll32.exe shell32.dll,Control_RunDLL access.cpl,,5
     显示:rundll32.exe shell32.dll,Control_RunDLL access.cpl,,3
     键盘:rundll32.exe shell32.dll,Control_RunDLL access.cpl,,1
     鼠标:rundll32.exe shell32.dll,Control_RunDLL access.cpl,,4
     声音:rundll32.exe shell32.dll,Control_RunDLL access.cpl,,2
    
    这里有一个VB的例子control.zip(江天玉推荐)。
    相关问题:
    QA000829 "如何在VC++中调用外部程序"

此问题由李海回答。

 
把这个问题推荐给朋友
   
   
您的意见类别
您的名字
您的电子邮件
您的建议(请尽可能详细)
 
 

版权所有 1997-2008 热情软件屋
如果您有任何建议和意见, 请给我发个电子邮件 askpro@china-askpro.com
Web Designed by ZebraStudio