PDA

Click to See Complete Forum and Search --> : Fill Region


Eyes.Only
Jan 3rd, 2002, 05:09 AM
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* :confused:

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

numtel
Jan 3rd, 2002, 07:48 AM
try using a shape control and then the form's image property to get the outline of it

Eyes.Only
Jan 3rd, 2002, 03:48 PM
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.

Megatron
Jan 3rd, 2002, 04:44 PM
Couldn't you just set the backcolor of the Form to White?

Eyes.Only
Jan 3rd, 2002, 06:02 PM
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...