BUG: Painting Model for BitBlt and StretchBlt Changed for VB6
Aug.01, 2010 in
Uncategorized
Symptoms
A program that paints correctly using the BitBlt or StretchBlt APIfunctions under Visual Basic 5.0 might no longer work under Visual Basic6.0. Under Visual Basic 5.0, the bitmap is correctly displayed no matterwhether 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 callRefresh to view the result after calling BitBlt or StretchBlt if theAutoRedraw property is set to True.

Leave a Reply