Solved

Example of ExtFloodfill

Posted on 1998-10-06
2
500 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
MikeP090797 earned 50 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

729 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