最大的Windows Cursor大小 [英] The biggest size of Windows Cursor

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

问题描述

我有一个游标的尺寸大小128x128,但是当我使用LoadCursor加载和显示它,它只有32x32。哪些API可以正确?看来MS调整它的大小。感谢。

I have a cursor what the size size 128x128, but when i used LoadCursor to load and show it, it only has 32x32. Which API can make it correctly? It seems MS resize it. Thanks.

推荐答案

Windows XP不包含大于32x32的任何系统游标。 (如果包含较大的光标,则当标准API加载光标时,它们将被拉伸到32x32。)

Windows XP does not include any system cursors that are larger than 32x32. (If larger cursors were included, they would be stretched down to 32x32 when the standard APIs load the cursors.)

对于高DPI系统,Windows XP已调整SM_CXCURSOR和SM_CYCURSOR值为64x64像素。这种尺寸调整是为了防止鼠标指针实际上消失,因为它太小而不能被有效使用。虽然系统的其他方面与DPI缩放,但鼠标指针不缩放。 Microsoft不会尝试为鼠标指针强制使用与DPI无关的大小。

For high-DPI systems, Windows XP has adjusted the SM_CXCURSOR and SM_CYCURSOR values to be 64x64 pixels. This size adjustment is to prevent the mouse pointer from virtually disappearing because it is too small to be effectively used. Although the other aspects of the system scale with DPI, the mouse pointer does not scale. Microsoft does not try to enforce a DPI-independent size for the mouse pointer.

系统还提供了SetSystemCursor API函数,您可以使用它来更改特定的系统游标类别。您可以使用此功能设置任何大小的光标。但是,必须以编程方式调用函数,并且只能使用它为特定类别设置游标。您不能使用它来使系统上的所有游标具有相同的大小。

The system also provides the SetSystemCursor API function that you can use to change the system cursor for specific categories. You can use this function to set a cursor of any size. However, you must call the function programmatically, and you can only use it to set a cursor for a specific category. You cannot use it to make all cursors on the system the same size.

http://support.microsoft.com/kb/307213

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

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