Windows.Forms.Panel 32767 size limit

前端 未结 4 1728
陌清茗
陌清茗 2020-11-30 14:01

I have an application that uses Windows.Forms.Panel to display a list of pictures. When the height of the panel exceeds 32767 pixels the rest of the content is

4条回答
  •  孤街浪徒
    2020-11-30 14:35

    LPARAM - A Data type of Windows used to pass message parameters to Windows Procedure. It is a 32 bit pointer which passes message as two parts i.e in High order(First 16 bits of 32 bits) and Low order(Second 16 bits of 32 bits).

      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

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

提交回复
热议问题