Click here to Skip to main content
15,912,504 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Custom ProgressBar Pin
David Crow7-Jun-10 4:12
David Crow7-Jun-10 4:12 
Questionfatal error C1900 Pin
T.RATHA KRISHNAN6-Jun-10 18:07
T.RATHA KRISHNAN6-Jun-10 18:07 
AnswerRe: fatal error C1900 Pin
Stephen Hewitt6-Jun-10 18:08
Stephen Hewitt6-Jun-10 18:08 
GeneralRe: fatal error C1900 Pin
T.RATHA KRISHNAN7-Jun-10 0:21
T.RATHA KRISHNAN7-Jun-10 0:21 
GeneralRe: fatal error C1900 Pin
Stephen Hewitt7-Jun-10 14:03
Stephen Hewitt7-Jun-10 14:03 
QuestionRe: fatal error C1900 Pin
David Crow7-Jun-10 4:14
David Crow7-Jun-10 4:14 
QuestionDoxygen is melting my face, need pointers Pin
Trevor Johansen6-Jun-10 8:24
Trevor Johansen6-Jun-10 8:24 
AnswerRe: Doxygen is melting my face, need pointers Pin
Aescleal6-Jun-10 8:29
Aescleal6-Jun-10 8:29 
GeneralRe: Doxygen is melting my face, need pointers Pin
Trevor Johansen6-Jun-10 8:46
Trevor Johansen6-Jun-10 8:46 
GeneralRe: Doxygen is melting my face, need pointers Pin
Aescleal6-Jun-10 11:01
Aescleal6-Jun-10 11:01 
AnswerRe: Doxygen is melting my face, need pointers Pin
Moak6-Jun-10 10:18
Moak6-Jun-10 10:18 
GeneralRe: Doxygen is melting my face, need pointers Pin
Trevor Johansen6-Jun-10 12:29
Trevor Johansen6-Jun-10 12:29 
QuestionBitblt Transparency question Pin
ForNow5-Jun-10 23:31
ForNow5-Jun-10 23:31 
AnswerRe: Bitblt Transparency question Pin
Niklas L6-Jun-10 9:07
Niklas L6-Jun-10 9:07 
GeneralRe: Bitblt Transparency question Pin
ForNow6-Jun-10 10:33
ForNow6-Jun-10 10:33 
GeneralRe: Bitblt Transparency question Pin
Niklas L6-Jun-10 10:59
Niklas L6-Jun-10 10:59 
GeneralRe: Bitblt Transparency question Pin
ForNow6-Jun-10 11:20
ForNow6-Jun-10 11:20 
GeneralRe: Bitblt Transparency question Pin
ForNow6-Jun-10 11:30
ForNow6-Jun-10 11:30 
GeneralRe: Bitblt Transparency question Pin
Niklas L6-Jun-10 11:42
Niklas L6-Jun-10 11:42 
GeneralRe: Bitblt Transparency question Pin
ForNow6-Jun-10 11:48
ForNow6-Jun-10 11:48 
GeneralRe: Bitblt Transparency question Pin
ForNow6-Jun-10 17:42
ForNow6-Jun-10 17:42 
Filled the entire bitmap all white


from the MSDN doc says that area will be filled with the current brush till the color boudry

I would think boudry is the RGB of the yellow arrow

Here is the code

C#
CBitmap *bm = new CBitmap;           // Bitmap Object

 bm->LoadBitmap((UINT) IDD_BITMAP);             // LOAD THE ARROW

 CDC *cdcwindow = this->GetDC();

 CDC cdcimage;

  cdcimage.CreateCompatibleDC(cdcwindow);

   CBitmap *oldbit = cdcimage.SelectObject(bm);

  cdcimage.SetDCBrushColor(RGB(125,125,125));

    clr = RGB(125,125,125);

  cdcimage.FloodFill(0,0,clr);

  bm = cdcimage.SelectObject(oldbit);



MFC Library Reference
CDC::FloodFill

Fills an area of the display surface with the current brush.

Copy
BOOL FloodFill(
int x,
int y,
COLORREF crColor
);

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.

reading the doc on MSDN for Flood fill says it will fill the Color with the Current

brush
GeneralRe: Bitblt Transparency question Pin
Niklas L6-Jun-10 20:48
Niklas L6-Jun-10 20:48 
GeneralRe: Bitblt Transparency question Pin
ForNow7-Jun-10 2:27
ForNow7-Jun-10 2:27 
QuestionAsynchronous sockets Pin
onyxbird5-Jun-10 19:06
onyxbird5-Jun-10 19:06 
AnswerRe: Asynchronous sockets Pin
Aescleal5-Jun-10 19:36
Aescleal5-Jun-10 19:36 

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.