[英]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.