SPACE_AreaBox broken?
Posted: Thu Dec 27, 2012 4:08 am
I'm unable to get reasonable results when doing a GetAttrs() for SPACE_AreaBox. (4.1 upd 6, SDK 53.20).
The function returns 1, and the IBox variable is written into, but the values don't make any sense.
Doing a GetAttrs() for GA_LEFT/TOP/WIDTH/HEIGHT does work.
The main thing is that the GA_xxxx values include the bevel part when SPACE_BevelStyle is not none.
From the Autodocs, I got the idea that SPACE_AreaBox should be only the inner area, not including the
bevel pixels.
eg, for GA_LEFT returned as 7, GA_TOP 33, GA_WIDTH 696, GA_HEIGHT 468
the corresponding SPACE_AreaBox values might be box.Left of 23989, box.Top of -26296, box.Width of 0, box.Height of 0
The box.Left and box.Top seem to be pretty random (with the same size Space they may be quite different next time, but the box.Width and box.Height always 0. I explicitly initialized the IBox to 0's before the GetAttrs().
Anyone seen this?
Thanks,
Tom
The function returns 1, and the IBox variable is written into, but the values don't make any sense.
Doing a GetAttrs() for GA_LEFT/TOP/WIDTH/HEIGHT does work.
The main thing is that the GA_xxxx values include the bevel part when SPACE_BevelStyle is not none.
From the Autodocs, I got the idea that SPACE_AreaBox should be only the inner area, not including the
bevel pixels.
eg, for GA_LEFT returned as 7, GA_TOP 33, GA_WIDTH 696, GA_HEIGHT 468
the corresponding SPACE_AreaBox values might be box.Left of 23989, box.Top of -26296, box.Width of 0, box.Height of 0
The box.Left and box.Top seem to be pretty random (with the same size Space they may be quite different next time, but the box.Width and box.Height always 0. I explicitly initialized the IBox to 0's before the GetAttrs().
Anyone seen this?
Thanks,
Tom