Solved

Example of ExtFloodfill

Posted on 1998-10-06
2
508 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month7 days, 11 hours left to enroll

632 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