Results 1 to 5 of 5

Thread: Fill Region

  1. #1

    Thread Starter
    Hyperactive Member Eyes.Only's Avatar
    Join Date
    Oct 2001
    Location
    Minnesota
    Posts
    347

    Fill Region

    I cant seem to figure this out so maybe someone has some tips for me.

    I create a rounded rectangle region in a picture box with CreateRoundRectRgn, and i then want to fill that region with white. It would be awesome if it had a black line around it but im not going to get greedy.

    But I cant get anything to show up. If i could just use a shape for this i would but i dunno how to get the hdc of a shape so that i can do what i ultimately have to do (setting region for a controls transparency) so umm *scratches head*

    please enlighten me... any way you can...heh

  2. #2
    Frenzied Member numtel's Avatar
    Join Date
    Apr 2000
    Location
    CA
    Posts
    1,163
    try using a shape control and then the form's image property to get the outline of it

  3. #3

    Thread Starter
    Hyperactive Member Eyes.Only's Avatar
    Join Date
    Oct 2001
    Location
    Minnesota
    Posts
    347
    the shape control doesnt register as part of the image...i dont think so anyway. I tried it just to make sure and it didnt work for me.

  4. #4
    Megatron
    Guest
    Couldn't you just set the backcolor of the Form to White?

  5. #5

    Thread Starter
    Hyperactive Member Eyes.Only's Avatar
    Join Date
    Oct 2001
    Location
    Minnesota
    Posts
    347
    nah cuz not only is it spose to be a rounded rectangle but its a chat balloon, thus theres a triangular 'tail' on it as well...

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