Microsoft KB Archive/128237

From BetaArchive Wiki

PRB: Polyline Fails with NULL Clipping Region

Q128237



The information in this article applies to:


  • Microsoft Windows Software Development Kit (SDK) 3.1





SYMPTOMS

The Polyline API will return a failure code if called on a DC that has a NULL clipping region selected. One situation in which this can occur is when Polyline is used to draw into a DC for a window that is completely obscured by another window.



RESOLUTION

Check to see if the clipping region is NULL before calling Polyline and testing its return value.



STATUS

This behavior is by design on Windows 3.1.

This behavior does not occur on Windows NT or on Windows 95.

Additional query words: 3.10 no32bit Polygon fails hidden

Keywords : kb16bitonly
Issue type :
Technology : kbAudDeveloper kbWin3xSearch kbSDKSearch kbWinSDKSearch kbWinSDK310


Last Reviewed: November 6, 1999
© 2001 Microsoft Corporation. All rights reserved. Terms of Use.