BUG: Pie() and Arc() Functions Fail with a Wide PenLast reviewed: January 5, 1995Article ID: Q111337 |
The information in this article applies to:
SYMPTOMSWhen creating a wide (multiple pixel) pen and drawing a reasonably large object, the drawing function returns 0 (zero) or does not draw anything. Choosing a thin (single pixel) pen or choosing a pen smaller than X pixels corrects the problem.
CAUSEGDI builds a polygon that basically puts a circle on every point along the pen's path and calls Polygon() to fill it. If the point data or the working storage of Polygon() exceeds 64K, the call is failed.
STATUSMicrosoft has confirmed this to be a bug in Windows version 3.0 and 3.1. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThe following are examples that reproduce the problems in Windows version 3.1.
Pie() FunctionWhen selecting a bold pen [second parameter of CreatePen() is greater than 7] and calling Pie() as follows, nothing is drawn; however, the return value of Pie() indicates that it was drawn:
hPen=CreatePen(PS_SOLID,9,0L); SelectObject(hDC,hPen); Pie(hDC, 96, 11, 839, 754, 440, 12, 479, 11); Arc() FunctionThe Arc() function returns an error value when called as follows, even though the width and height are both within the documented limits of 32767:
Arc( hDC, -11047, -3493, 806, 8360, 311, 64, 356, 170 ); x1 y1 x2 y2 X3 Y3 X4 Y4 |
Additional reference words: buglist3.00 buglist3.10 3.00 3.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |