gpt4 book ai didi

windows-mobile - 如何使 ListView 项目看起来像 Microsoft 在 WM 6.5.3 中提供的项目?

转载 作者:行者123 更新时间:2023-12-04 06:45:52 27 4
gpt4 key购买 nike

alt text

请看上面的截图。左边是WM 6,右边是WM 6.5.3。在 6.5.3 中有一个自动布局引擎,可以调整所有控件,使它们更易于触摸。我的文档是这样说的:

By default, Auto Layout is disabled for third-party applications. However. application developers can enable this feature by setting the following style flag in their application: DS_EX_AUTOTOUCHLAYOUT (0x00200000L). When enabled, the Auto Layout engine will automatically set the style flag for each control so that the application supports finger-touch capabilities.

DS_EX_AUTOTOUCHLAYOUT 标志在我的 6.5.3 DTK header 中定义:

#define DS_EX_AUTOTOUCHLAYOUT   0x01000000L

(注意 doc 和 header 值不同)

但无论我如何尝试将该标志与来自 native 代码或托管代码的表单(自定义窗口类)或对话框(DIALOG 窗口类)一起使用,我都无法看到我的 ListView 项目在上方的右侧。我只得到普通的薄(高度)纯色背景项目。

我在带有 Remote Spy 的模拟器中查看了 10 个左右的 MS 应用程序,其中一些是所有者绘制的,但甚至不是大多数,所以这不可能是造成时髦外观的原因。在 Remote Spy 中查看 MS 提供的应用程序时,我也找不到任何其他一致的模式。

我怎样才能让我的应用程序像 MS 应用程序一样对触摸友好,并且看起来也一样漂亮?

谢谢!

最佳答案

"new" ListView 项呈现的 secret 与自动布局引擎毫无关系。只需向 ListView 发送一条 LVM_SETEXTENDEDLISTVIEVSTYLE 消息,并将掩码和样式设置为 LVS_EX_THEME!

A few tips on customizing ListView in WM 6.5

关于windows-mobile - 如何使 ListView 项目看起来像 Microsoft 在 WM 6.5.3 中提供的项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3372818/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com