Click here to Skip to main content
15,889,335 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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
GeneralRe: How to draw a filled triangle Pin
Rick York28-Mar-04 20:06
mveRick York28-Mar-04 20:06 
GeneralRe: How to draw a filled triangle Pin
Steve S29-Mar-04 0:36
Steve S29-Mar-04 0:36 
GeneralRe: How to draw a filled triangle Pin
Antony M Kancidrowski29-Mar-04 2:26
Antony M Kancidrowski29-Mar-04 2:26 
GeneralRe: How to draw a filled triangle Pin
Christian Graus29-Mar-04 9:55
protectorChristian Graus29-Mar-04 9:55 
Generalending strings Pin
kfaday28-Mar-04 15:39
kfaday28-Mar-04 15:39 
GeneralRe: ending strings Pin
Christian Graus28-Mar-04 16:28
protectorChristian Graus28-Mar-04 16:28 
GeneralRecursion in Visual C++ Pin
Iceberg7628-Mar-04 15:34
Iceberg7628-Mar-04 15:34 
GeneralRe: Recursion in Visual C++ Pin
kfaday28-Mar-04 15:45
kfaday28-Mar-04 15:45 
GeneralRe: Recursion in Visual C++ Pin
Steve S29-Mar-04 0:38
Steve S29-Mar-04 0:38 
GeneralRe: Recursion in Visual C++ Pin
oOomen29-Mar-04 5:36
oOomen29-Mar-04 5:36 
GeneralRe: Recursion in Visual C++ Pin
David Crow29-Mar-04 3:27
David Crow29-Mar-04 3:27 
GeneralEnumerating dialog controls Pin
codecharmer28-Mar-04 14:38
codecharmer28-Mar-04 14:38 
GeneralRe: Enumerating dialog controls Pin
wb28-Mar-04 18:29
wb28-Mar-04 18:29 
GeneralRe: Enumerating dialog controls Pin
codecharmer29-Mar-04 3:43
codecharmer29-Mar-04 3:43 
GeneralHelp with to resize some frames Pin
Victor Nikol28-Mar-04 14:37
Victor Nikol28-Mar-04 14:37 
GeneralRe: Help with to resize some frames Pin
Christian Graus28-Mar-04 16:53
protectorChristian Graus28-Mar-04 16:53 
QuestionThe difference between debug and release version? Pin
Indrawati28-Mar-04 14:33
Indrawati28-Mar-04 14:33 

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.