Windows 7中的滚动条外观控件 [英] Scrollbar Appearance Control in Windows 7

查看:182
本文介绍了Windows 7中的滚动条外观控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个具有带滚动条的ListView控件的应用程序,并且它自动具有漂亮的滚动条:

I have an application that has a ListView control with scrollbars, and it has the cool looking scrollbars in it automatically:

CreateWindowExW(WS_EX_WINDOWEDGE,L"SysListView32",L"MyList",
WS_CHILD|WS_VISIBLE|LVS_NOSCROLL|LVS_REPORT|LVS_NOCOLUMNHEADER|WS_VSCROLL|LVS_SHOWSELALWAYS| LVS_SINGLESEL,
0,0,500,290,ownerhWnd, (HMENU)0,hInst,NULL);

但是,当我为应用程序的另一部分手动创建Scrollbar控件时,它具有较旧的3d样式:

However, when I create a Scrollbar control manually for another part of the application, it has the older 3d-style look:

CreateWindow(TEXT("SCROLLBAR"), TEXT("MyScrollBar"),
WS_CHILD | WS_VISIBLE | SBS_VERT,0,0, CW_USEDEFAULT,
100, ownerhWnd, (HMENU)10 , NULL, NULL); 

如何使它具有新外观?有没有我使用的另一个控件,或者可以应用于标准控件的样式?我查看了Flat Scroll Bar,但是它说XP以后不支持它吗?

How do I get it to have the new look? Is there another control I use, or a style that I can apply to the standard control? I looked into the Flat Scroll Bar, however it says that it is not supported from XP onwards?

谢谢

推荐答案

也许是一扇敞开的门,但是您已经在应用程序的资源中添加了Windows XP/Vista/7清单?

Maybe an open door, but you have added a Windows XP/Vista/7 manifest to your application's resources?

这篇关于Windows 7中的滚动条外观控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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