Excellant input. Works like a charm. I used this to highlight rows on a MSFlexGrid successfully. Thanks

Amitabh

[QUOTE
And I've attached a little demo project.

At present, it just does a rectangle and an ellipse (oval). Those can easily be used to make squares or circles. To do the rounded rectangle would take a bit more work, but it wouldn't be huge. I'll see if someone needs that before doing that work. To do it, I'd tend to just shove a circle into each of the corners, and then use the features of CombineRgn to get it done. (It's not quite that simple, but that's how I'd start to get it going.)

Enjoy,
Elroy

[/QUOTE]