简体   繁体   English

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

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

I am using a panel and auto scroll for printing texts in bitmap Editor(Bitmap Editor - a control created by me for printing texts in ellipses). 我正在使用面板和自动滚动在位图编辑器中打印文本(位图编辑器-由我创建的用于在椭圆形中打印文本的控件)。 My issue is that the texts are simply ignored or is not showing in the bitmap editor when the width of bitmap editor exceeds 32767 size. 我的问题是,当位图编辑器的宽度超过32767大小时,文本将被忽略或不显示在位图编辑器中。

Is that possible to use auto scroll other than in panels or please anyone help me to solve this. 是否可以在面板之外使用自动滚动,或者请任何人帮助我解决此问题。

Thanks a lot for helping me on this.... 非常感谢您在此方面的帮助。

At lasts I got the reason for the error mentioned above. 最后,我得到了上述错误的原因。

LPARAM - A Data type of Windows used to pass message parameters to Windows Procedure. LPARAM-Windows的一种数据类型,用于将消息参数传递给Windows Procedure。 It is a 32 bit pointer which passes message as two parts ie in High order(First 16 bits of 32 bits) and Low order(Second 16 bits of 32 bits). 它是一个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

So if the height or width of the control exceeds 32762size, it shows error because 因此,如果控件的高度或宽度超过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