Change the main widow in Test2007.prg as MDI window. Now right click on button bar and choose Left. The bar is moved to left vertically and looks good. Then again right click and choose Right. Now the button bar is painted broken like this :
Then if we resize the window, the bar gets painted correctly.
This happens only when the window is MDI and bar is moved from Left to Right or Right to Left. After this resize of window repaints the bar correctly.