Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Example of ExtFloodfill

Posted on 1998-10-06
2
Medium Priority
?
534 Views
Last Modified: 2008-03-10
I cannot use the function Extfloodfill because vb says: entry not found. Maybe the declaration isn't ok, but I read it in a Windows book. I use this declaration:
'declare function extfloodfill lib "gdi32" (...) as integer'
Can anyone send me a working vbp of Extfloodfill?
0
Comment
Question by:cvanbreugel
2 Comments
 
LVL 8

Accepted Solution

by:
MikeP090797 earned 100 total points
ID: 1438461
For VB4-32bit, VB5 or VB6 this will work:

Declare Function ExtFloodFill Lib "gdi32" Alias "ExtFloodFill" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal crColor As Long, ByVal wFillType As Long) As Long

If you are using VB4-16bit or VB3, you can get the correct declare from a winapi.txt file located at \VB\Winapi
0
 

Author Comment

by:cvanbreugel
ID: 1438462
Dear Mike,
Thanks for your answer. The function works now, but not as I want.
I wanted to use the function ExtFloodfill to fill  an area in a  picturebox.
Problem: it works only when the border is black. What I want is that
an area is filled, also when the border has another colour, or when
the border has two colours. The description says that it must work,
but it doesn't.
What is my mistake?
Cees
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question