tags:

views:

37

answers:

1

My application has a static control which inside has a tab control. It looks like this: alt text

and I want to handle the topbar's paint event so that after it has drawn itself (and its children), have it floodfill to look more like this:

alt text

Given that I'v subclassed the topbar and can override any of its events, how could I do this?

Thanks

+2  A: 

The first thing I'd try would be to fill it in response to WM_ERASEBKGND (and I'd use FillRect, not FloodFill).

Jerry Coffin