BUG: Painting Model for BitBlt and StretchBlt Changed for VB6 (189736)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q189736 SYMPTOMS
A program that paints correctly using the BitBlt or StretchBlt API
functions under Visual Basic 5.0 might no longer work under Visual Basic
6.0. Under Visual Basic 5.0, the bitmap is correctly displayed no matter
whether the AutoRedraw property of the Form is set to True or False.
However, under Visual Basic 6.0, if the AutoRedraw property is set to True,
nothing is displayed and no error messages are generated.
RESOLUTION
In Visual Basic 6.0, set the Form's AutoRedraw property to False or call
Refresh to view the result after calling BitBlt or StretchBlt if the
AutoRedraw property is set to True.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products
listed at the beginning of this article. We are researching this
bug and will post new information here in the Microsoft Knowledge
Base as it becomes available.
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbbug KB189736 |
---|
|