the pages of the tab display are dialog boxes.

By "paints" I actually meant that using SetBkMode(), SetBkColor(), FillRect(), returning the hbrush that is the COLOR_3DFACE does not work for any of them