>This just flat crashes'n'burns ("bus error") under 3.5 (build 20 and 25):
>  RectangleType   drawRect;
>  ...
>  WinGetWindowBounds(&drawRect);

No it doesn't.  At least it won't as long as there is a window to get the bounds
of.  Windows for forms are now not created until the form is displayed.  The
problem is that many apps were drawing to a form's window before the form is
drawn.  With color, and the form needs to be cleared to the form's color.  This
erases all prior draws.  So rather than having developers figure out which lines
of code draw before forms are drawn, the window is invalid until the form is
drawn.  Developers now can tell what line of code causes a problem, and gremlins
can find incorrect draw cases.

What are you trying to do?

If you're just trying to get the bounds of the form, use FrmGetFormBounds.


-Roger Flores



Reply via email to