Re: getClientRect
- Posted by "C. K. Lester" <cklester at yahoo.com> May 16, 2003
- 471 views
> > getClientRect ( integer ControlId ) > > Get uncovered portion of the client area. > > Returns: { x1, y1, x2, y2 } > > > > If I not mistaken, it should be > > {x, y, width, height} ?? > > > > Actually that turns out not to be the case. This routine returns {Left, Top, > Right, Bottom} coordinates. Not the way I'd do it but that's Windows for > you. > > Actually, I'll enhance the return value so it returns {Left, Top, Right, > Bottom, Width, Height}. Isn't that redundant? Why not make the user figure the Width and Height? I know it's very very few cycles to do the calculation in the library, but redundancy or duplicity doesn't seem right to me. :) I'm just wondering what your reasoning was... not complaining!!!