Strange Clipping Problem

I'm working on the windows side of a GUI framework (using WIN32 API, not MFC or ATL). I've just finished wrapping the tab control in a class and noticed a strange problem.

Here's the setup:
A tab control is in a frame and set to automatically fill the entire frame's client area. A button is added as a tab and is set to fill the entire tab's client area.

When the frame's width is resized to be larger than the initial width, the tab and button both get resized. However, the button gets clipped so anything past the initial width of the button isn't drawn. The text on the button gets re-centered and I can still click on the part that isn't drawn and get a mouse message. The tab is also drawn correctly.

Also, when XP visual styles aren't used (ie, I remove the manifest) the button gets drawn correctly. When the button is just placed in a frame, it gets drawn correctly. Any other controls that get placed in the tab (check box, radio button progress bar, slider, etc) are all drawn correctly.

I can't really post any code since it's very lengthy and spread out over many classes. Does anyone have any general suggestions as to what could be wrong? I know it's hard figure anything out without looking at the source, but any suggestions as to what I could look for would be very appreciated. Thanks a lot!!

Kelly
[1439 byte] By [Runt888] at [2007-11-18 20:29:44]