[lazarus] Bug in lcl resizing code and patch for win32

Micha Nelissen mdvpost at hotmail.com
Sat Jun 28 15:18:43 EDT 2003


Karl Brandt wrote:
> Micha Nelissen wrote:
>
>> Karl Brandt wrote:
>>
>>
>>> Sometime ago i sent a patch fixing the forms sizes under win32 and
>>> got surprised to see that things were messed.
>>> So i  did the  job again!
>>>
>>> Attached is a patch that makes the form sizes correct.
>>>
>>>
>>
>> What was wrong? Those messages should send the same information as
>> you retrieve via GetClientRect/GetWindowRect.
>>
>>
> In LCL, WindowSize = ClientSize while windows and VCL expect/returns
> diferent sizes, so is needed  some adjustments.

That does not explain the WM_MOVE change. The WM_SIZE is defined as such:

nWidth = LOWORD(lParam);  // width of client area
nHeight = HIWORD(lParam); // height of client area

Testing shows that those changes provide the same functionality, only
slower.

Regards,

Micha.






More information about the Lazarus mailing list