Click here to Skip to main content
15,902,802 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: editing unicode char ? Pin
Manikandan28-Mar-04 22:22
Manikandan28-Mar-04 22:22 
GeneralRe: editing unicode char ? Pin
RChin28-Mar-04 22:39
RChin28-Mar-04 22:39 
GeneralPointer or not pointer Pin
Jonathan Pouliot28-Mar-04 19:59
Jonathan Pouliot28-Mar-04 19:59 
GeneralRe: Pointer or not pointer Pin
22491728-Mar-04 20:23
22491728-Mar-04 20:23 
GeneralRe: Pointer or not pointer Pin
Prakash Nadar28-Mar-04 21:07
Prakash Nadar28-Mar-04 21:07 
GeneralRe: Pointer or not pointer Pin
Anonymous29-Mar-04 4:52
Anonymous29-Mar-04 4:52 
GeneralThreads Pin
SatyaDY28-Mar-04 19:38
SatyaDY28-Mar-04 19:38 
GeneralRe: Threads Pin
Prakash Nadar28-Mar-04 21:10
Prakash Nadar28-Mar-04 21:10 
GeneralRe: Threads Pin
SiddharthAtw28-Mar-04 22:57
SiddharthAtw28-Mar-04 22:57 
GeneralRe: Threads Pin
Prakash Nadar28-Mar-04 23:06
Prakash Nadar28-Mar-04 23:06 
GeneralRe: Threads Pin
Tim Smith29-Mar-04 4:14
Tim Smith29-Mar-04 4:14 
GeneralRe: Threads Pin
Prakash Nadar29-Mar-04 5:44
Prakash Nadar29-Mar-04 5:44 
GeneralRe: Threads Pin
Tim Smith29-Mar-04 4:13
Tim Smith29-Mar-04 4:13 
GeneralRe: Threads Pin
SatyaDY29-Mar-04 17:20
SatyaDY29-Mar-04 17:20 
GeneralCreating shortcuts Pin
Vini Deep28-Mar-04 19:00
Vini Deep28-Mar-04 19:00 
GeneralRe: Creating shortcuts Pin
22491728-Mar-04 19:19
22491728-Mar-04 19:19 
GeneralRe: Creating shortcuts Pin
Milton Karimbekallil28-Mar-04 19:58
Milton Karimbekallil28-Mar-04 19:58 
GeneralRe: Creating shortcuts Pin
Vini Deep28-Mar-04 20:37
Vini Deep28-Mar-04 20:37 
QuestionRe[2]: Creating shortcuts Pin
sysop@HAL9K.com4-Feb-10 4:55
sysop@HAL9K.com4-Feb-10 4:55 
GeneralPrinting question Pin
Peter Mares28-Mar-04 18:26
Peter Mares28-Mar-04 18:26 
GeneralRe: Printing question Pin
Steve S29-Mar-04 0:34
Steve S29-Mar-04 0:34 
QuestionHow to draw a filled triangle Pin
vamsy krishna28-Mar-04 16:15
vamsy krishna28-Mar-04 16:15 
AnswerRe: How to draw a filled triangle Pin
Christian Graus28-Mar-04 16:27
protectorChristian Graus28-Mar-04 16:27 
GeneralRe: How to draw a filled triangle Pin
vamsy krishna28-Mar-04 16:49
vamsy krishna28-Mar-04 16:49 
GeneralRe: How to draw a filled triangle Pin
Christian Graus28-Mar-04 16:52
protectorChristian Graus28-Mar-04 16:52 
*sigh*

CDC::ExtFloodFill See Also
CDC Overview | Class Members | Hierarchy Chart | CDC::FloodFill | CDC::GetDeviceCaps | ExtFloodFill
Fills an area of the display surface with the current brush.

BOOL ExtFloodFill(
int x,
int y,
COLORREF crColor,
UINT nFillType
);
Parameters
x
Specifies the logical x-coordinate of the point where filling begins.
y
Specifies the logical y-coordinate of the point where filling begins.
crColor
Specifies the color of the boundary or of the area to be filled. The interpretation of crColor depends on the value of nFillType.
nFillType
Specifies the type of flood fill to be performed. It must be either of the following values:
FLOODFILLBORDER The fill area is bounded by the color specified by crColor. This style is identical to the filling performed by FloodFill.
FLOODFILLSURFACE The fill area is defined by the color specified by crColor. Filling continues outward in all directions as long as the color is encountered. This style is useful for filling areas with multicolored boundaries.
Return Value
Nonzero if the function is successful; otherwise 0 if the filling could not be completed, if the given point has the boundary color specified by crColor (if FLOODFILLBORDER was requested), if the given point does not have the color specified by crColor (if FLOODFILLSURFACE was requested), or if the point is outside the clipping region.

Remarks
This member function offers more flexibility than FloodFill because you can specify a fill type in nFillType.

If nFillType is set to FLOODFILLBORDER, the area is assumed to be completely bounded by the color specified by crColor. The function begins at the point specified by x and y and fills in all directions to the color boundary.

If nFillType is set to FLOODFILLSURFACE, the function begins at the point specified by x and y and continues in all directions, filling all adjacent areas containing the color specified by crColor.

Only memory-device contexts and devices that support raster-display technology support ExtFloodFill. For more information, see the GetDeviceCaps member function.

As I said, the nFillType variable allows you to fill an area with differing colours inside it, so long as none of them are the colour your shape is bound by.

msdn.microsoft.com[^]

Christian

I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.