901105-旧样式的滚动条 [英] 901105 - old style scrollbar

查看:88
本文介绍了901105-旧样式的滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我在我的课堂上有一个CScrollBar对象.我通过使用其创建功能来创建它.它出现并运作良好.但这是一个旧样式(Windows 2000主题)滚动条.如何用新样式(Windows XP蓝色主题)滚动条替换它?

现在我要用另一句话来问同样的问题,这一次我也要描绘它.可以在Windows中的两个不同主题中使用相同的功能绘制垂直滚动条:
http://8208.6.img98.net/out.php/i194278_two-themes- of-vertical-scllbar.png [ ^ ]
当我使用CScrollBar :: Create时,它将在经典主题中创建一个滚动条(左图),而我希望在具有视觉效果的新主题中创建一个滚动条(右图).
我希望我能澄清一下.抱歉,我的母语不是英语.
thx

解决方案

看看 ^ ]

那应该可以解决您的问题:)

最好的问候
Espen Harlinn


在stdafx.h的末尾,添加以下代码:

#pragma comment(linker,"/manifestdependency:\"type=''win32'' name=''Microsoft.Windows.Common-Controls'' version=''6.0.0.0'' processorArchitecture=''x86'' publicKeyToken=''6595b64144ccf1df'' language=''*''\"")



希望对您有所帮助.


hi i''ve a CScrollBar object in my class. i create it by using its Create function. it appears and works well. but it''s an old style (Windows 2000 theme) scrollbar. how can i replace it with a new style (Windows XP blue theme) scrollbar?

now i''m going to ask the same in another words and this time by depicting it also. a vertical scrollbar can be drawn with the same functionality in two different themes in Windows:
http://8208.6.img98.net/out.php/i194278_two-themes-of-vertical-scllbar.png[^]
when i use CScrollBar::Create it creates a scrollbar in the classic theme (left one), while i want it to be created in the new themed with visual effects (right one).
i hope i could clarify. sorry, my mother tongue is not English.
thx

解决方案

Have a look at Using Windows XP Styles in your MFC/WIN32 Applications[^]

That should solve your problem :)

Best regards
Espen Harlinn


At the end of stdafx.h, add the following code:

#pragma comment(linker,"/manifestdependency:\"type=''win32'' name=''Microsoft.Windows.Common-Controls'' version=''6.0.0.0'' processorArchitecture=''x86'' publicKeyToken=''6595b64144ccf1df'' language=''*''\"")



Hope it helps.


这篇关于901105-旧样式的滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆