large controls and SetWindowPos
Posted on 2004-08-17
I want to use same comtrols (Drawgrids) of very large size, more than 32k pixels high.
It is possible to assign (for instance)
// in Formcreate of the mainform
// create of agrid etc.
This will displayed correctly.
If you change the size of such large grid if the form is visible, say
than agrid.height is implicit also changed an set to 32767.
I determine, that this happens while the program calls SetWindowPos.
(SetWindowPos is the API-function from user32.dll.)
Nevertheless setwindowpos has integer - parameters (32-bit integer), it cuts the values to the maximum of 32767?
Is there any possibility to avoid this?
Any hint will be welcome!
p.s. I use win2000 SP4 and Delphi 6 (U2), but its the same under win2000 SP3.