I have a TMIChild container window with 2 Control bars inserted at the top of the window (stacked). There seems to be an area about 2 pixels wide on the bottom edge of the top control bar that isn't being repainted when the TMDIChild is resized or otherwise covered by another window. I am increasing the top and bottom margins by 2 in the TControlBar constructor (Margins.Top +=2 and Margins.Bottom +=2). I have also overridden TControlBar::Paint with the following:
// RTMToolBar::Paint(TDC& dc, bool erase, TRect& rect)
// This will paint a border between the MenuBar and
// the Toolbar
void RTMToolBar::Paint(TDC& dc, bool erase, TRect& rect)
TControlBar::Paint(dc, erase, rect);
,2), TUIBorder::EdgeEtched, TUIBorder::Top).Paint(dc);
This code adds an Etched edge to the top of the control bar.
This painting problem seems to exist even if I comment out the edge-painting code or the code that increases the margin size in the contructor. What can I do?
Manager, Workstation Products