繁体   English   中英

子控件超过32767宽度时,自动滚动不起作用

[英]Autoscroll not working when child control exceeds 32767 width

我正在使用面板和自动滚动在位图编辑器中打印文本(位图编辑器-由我创建的用于在椭圆形中打印文本的控件)。 我的问题是,当位图编辑器的宽度超过32767大小时,文本将被忽略或不显示在位图编辑器中。

是否可以在面板之外使用自动滚动,或者请任何人帮助我解决此问题。

非常感谢您在此方面的帮助。

最后,我得到了上述错误的原因。

LPARAM-Windows的一种数据类型,用于将消息参数传递给Windows Procedure。 它是一个32位指针,它将消息分为两个部分传递,即高阶(32位的前16位)和低阶(32位的第二个16位)。

      Where 
           High order is used to pass the height of the control and
           Low order is used to pass the width of the control

因此,如果控件的高度或宽度超过32762size,则会显示错误,因为

32767 is the highest number that can be represented in a signed 16bit integer.

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM