901105-旧样式的滚动条 [英] 901105 - old style scrollbar
问题描述
现在我要用另一句话来问同样的问题,这一次我也要描绘它.可以在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屋!