Windows XP WinAPI对CheckBox控件的支持 [英] Windows XP WinAPI support for CheckBox controls

查看:92
本文介绍了Windows XP WinAPI对CheckBox控件的支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在查看 BM_GETCHECK ,看来只有Windows Vista及更高版本才支持此功能.也就是说,这不是Windows XP中支持的消息.在线快速进行搜索不会"立刻产生了获取控制状态的另一种方法.

I was having a look at the documentation for BM_GETCHECK and it seems that this functionality is only supported on Windows Vista and above. That is, this is not a supported message in Windows XP. A quick search online doesn't immediately yield an alternative way of getting the control state.

其他几则消息(),据报道我也希望它可以在Windows XP上工作.有人对此有见识吗?通常如何处理Windows XP兼容性?

Several other messages (this for example) that I would also expect to work on Windows XP are reported to not be supported. Does anyone have any insight into this? How does one generally handle Windows XP compatibility?

不幸的是,我们仍然有一个著名的Windows XP客户群,因此仍然需要Windows XP支持.

Unfortunately we still have a notably Windows XP client base so Windows XP support is still necessary.

推荐答案

不幸的是,MSDN已成为Microsoft对Vista之前的OS版本进行战争的工具,现在它(至少在误导性上)在于受支持的最低OS版本.

Unfortunately MSDN has become a tool for Microsoft's war on pre-Vista OS versions, and it now lies (or at least misleads) about the minimum supported OS version.

也就是说,由于Vista现在是最早受支持的操作系统,因此在较早的版本中不支持"所有API(或至少已更新其文档的API),即使它们可能确实存在并且可以正常使用很好.

That is, since Vista is now the earliest supported OS, none of the APIs (or at least the ones who have had their documentation updated) are "supported" on an earlier version, even though they may actually exist and work just fine.

BM_GETCHECK 在Windows XP上确实存在,事实上,它在Windows 2000以及Windows 95上也存在.在XP上运行的代码不会仅仅因为Microsoft不再支持XP而神奇地停止工作.

BM_GETCHECK did exist on Windows XP, in fact it existed on Windows 2000 and probably Windows 95 as well. Code that works on XP doesn't magically stop working simply because Microsoft no longer support XP.

不幸的是,确保API函数或消息状态的唯一方法是使用旧版本的MSDN库(早于Windows 7的MSDN库,我认为这是在他们开始更新最低版本的时候数字).

Unfortunately your only way to be sure about the status of an API function or message is to use an old version of the MSDN library (one that pre-dates Windows 7 which is I believe around the time they started updating the minimum version numbers).

这篇关于Windows XP WinAPI对CheckBox控件的支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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