如何实现有XP风格的对话框!

eugen_Lij 2003-10-16 01:37:34
即:在对话框中显示XP风格的控件?

请赐教~~
...全文
118 20 打赏 收藏 转发到动态 举报
写回复
用AI写文章
20 条回复
切换为时间正序
请发表友善的回复…
发表回复
mochizuki 2003-11-27
  • 打赏
  • 举报
回复
98/2000下,只有两个方法,自已画或者用别人的现成的类
eugen_Lij 2003-11-27
  • 打赏
  • 举报
回复
hoho~~~~

谢谢大家~~~~问题解决!散分~~~
shantian 2003-11-26
  • 打赏
  • 举报
回复
good.
nullname 2003-11-26
  • 打赏
  • 举报
回复
楼上的,在98/2000下怎么办?
mochizuki 2003-11-26
  • 打赏
  • 举报
回复
还有一个:

1.Link to ComCtl32.lib and call InitCommonControls (see the Platform SDK documentation in the MSDN Library).

2.Add a file called YourApp.exe.manifest to your source tree that has the following XML format:
<?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>

3.Add the manifest to your application's resource file as follows:
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "YourApp.exe.manifest"

Note When you add the previous entry to the resource you must format it on one line. Alternatively, you can place the XML manifest file in the same directory as your application's executable file. The operating system will load the manifest from the file system first, and then check the resource section of the executable. The file system version takes precedence.
tonybaobao 2003-11-25
  • 打赏
  • 举报
回复
The following steps introduces XP Theme Style to your project:
Insert Resource, choose "Custom", input "24" (without quotes) as resource type
Copy and paste the following XML sheets into the editor.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly
xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
processorArchitecture="x86"
version="5.1.0.0"
type="win32"
name="test.exe"/>
<description>Test Application</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
publicKeyToken="6595b64144ccf1df"
language="*"
processorArchitecture="x86"/>
</dependentAssembly>
</dependency>
</assembly>

You can replace test.exe and Test Application with any string you like. This will not affect the behaviour of the application.

Change resource ID to 1.
Add calls to InitCommonControls() in your WinMain(). Don't forget to include commctrl.h and link comctl32.lib. Rebuild your project, all done :-)
This special resource type is only recognized by Windows XP. In any other version of Windows (Windows 9x/NT/2000), the program simply runs as before.

You can also create a manifest file with the same name of the EXE file, plus an extension .manifest, which contains the same lines as the ones above. For our test.exe, the manifest file is test.exe.manifest.
FmzHxj 2003-11-25
  • 打赏
  • 举报
回复
为此我花了172美圆买了一个软件,不过功能很强哦。
wangjs720 2003-11-25
  • 打赏
  • 举报
回复
去goolge搜索一下吧
gudulyn 2003-11-25
  • 打赏
  • 举报
回复
XP Style Hacker 哪个网站能下,我试了几个好象不行啊!
feiniaoliang 2003-11-25
  • 打赏
  • 举报
回复
有个软件可以做到,还不用写代码,觉得还行,你试试!!
XP Style Hacker 是一个完全免费的桌面美化类的小工具,它的作用就是让指定的程序不需要重新经过编程就可以具备XP风格的界面!
dzqsuper 2003-11-25
  • 打赏
  • 举报
回复
网上有好多你说得这种现在的类哦
都是前辈们写得
可以用现成的
carbon107 2003-11-25
  • 打赏
  • 举报
回复
http://www.vckbase.com/code/listcode.asp?mclsid=3&sclsid=301
这里有好多的
yintongshun 2003-11-25
  • 打赏
  • 举报
回复
http://www.vchelp.net/vchelp/archive.asp?type_id=15&class_id=1&cata_id=1&article_id=873&search_term=
mochizuki 2003-11-25
  • 打赏
  • 举报
回复
VS.net2003的MSDN中有说明,不过我也没有仔细看
dreamchild 2003-10-16
  • 打赏
  • 举报
回复
你要用XP系统就可以做出XP的界面了。
eugen_Lij 2003-10-16
  • 打赏
  • 举报
回复
有没有更加高深的,上面的方法太平凡了!而且,麻烦!!!

但是,还是谢谢!!!
wuxfBrave 2003-10-16
  • 打赏
  • 举报
回复
http://www.vchelp.net/vchelp/archive.asp?type_id=15&class_id=1&cata_id=1&article_id=873&search_term=
guanjinke 2003-10-16
  • 打赏
  • 举报
回复
还有就是用一些现成的类,比如:CButtonST,CButtonXP,CToolXP,CMenuXp等等,网上是可以找到的。
wuxfBrave 2003-10-16
  • 打赏
  • 举报
回复
从网上搜索下载xp风格的控件好了
guanjinke 2003-10-16
  • 打赏
  • 举报
回复
一方面你可以使用现成的一些工具,比如Skinmagic,把它加入你的工程就可以了。另一方面你就自己画吧。

16,471

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Web++
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧