Microsoft KB Archive/75640

= BUG: ExtFloodFill Won't Fill Over QBColors If AutoRedraw=True =

Article ID: 75640

Article Last Modified on 12/12/2003

-

APPLIES TO


 * Microsoft Visual Basic 2.0 Standard Edition
 * Microsoft Visual Basic 3.0 Professional Edition
 * Microsoft Visual Basic 2.0 Professional Edition
 * Microsoft Visual Basic 3.0 Professional Edition
 * Microsoft Visual Basic 1.0 Standard Edition

-



This article was previously published under Q75640



SYMPTOMS
If you try to use the ExtFloodFill API function in Windows version 3.0 or 3.1 along with the QBColor function that is included in Visual Basic, the first eight colors are displayed incorrectly on some computers.



CAUSE
With some computers, this problem causes the Fill Tool of the Iconworks sample application provided with Microsoft Visual Basic to fail when attempting to fill over QBColors (1-8).



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article with Microsoft Windows versions 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.



Steps to Reproduce Problem
 Start Visual Basic and begin a new project. Place a picture box on the Form. In the Properties bar for the picture box, set the AutoRedraw property to True and the FillStyle property to Solid.  Place the the following code in the General Declarations section of the code window for Form1, and enter the entire Declare statement on one, single line: DefInt A-Z Declare Function ExtFloodFill% Lib &quot;GDI&quot; (ByVal hdc, ByVal x, ByVal y,                                 ByVal crcolor as Long, ByVal wfilltype)   Place the following code in the Form_Click event procedure: Sub Form_Click Static I     I= I + 1 Picture1.BackColor = QBColor(I) x = ExtFloodFill(Picture1.hdc, 1, 1, Picture1.BackColor, 1) Print I;x Picture1.Refresh End Sub  Run the sample by pressing the F5 key. Notice that various colors are incorrectly displayed for QBColors 1-8 and that the return value from ExtFloodFill, held in x, is 0. QBColors 1-8 should be displaying black and the value for x should equal 1, not 0. QBColors 9-15 are correctly displayed.</ol>

Additional query words: buglist1.00 buglist2.00 buglist3.00 2.00 3.00

Keywords: kbbug KB75640

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.