Results 1 to 3 of 3

Thread: Un-create solid Brush?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485

    Un-create solid Brush?

    I'm using CreateSolidBrush API for FloodFill affect. I was using the circle method to make some circles with the center transparent. After using Floodfill the circle is always filled with the backcolor of the form. Unfortunately the Circle method appears to have the same DC as the Window it's in so if I delete the brush I can't draw anymore on the window. So how do I make the brush transparent again. I can't do this through the circle method - it won't allow it now that I have created a "solid" brush. Can anyone figure this out?

  2. #2
    Addicted Member
    Join Date
    Aug 2000
    Location
    Croatia
    Posts
    200
    Create a new transparent brush with the CreateBrushIndirect API, select it into a DC and delete the old brush.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    ma,usa
    Posts
    485
    Thanks! I'll give it a try

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width