Hi David, I met another issue.
I added another toolbar in CMainFrame::SetupToolBar().
The new toolbar is added to the same row as the main toolbar.
And I use a Tabbed MDI. When I drag my new toolbar to a new row below the main toolbar.
The view of current tab will disappear, it displays a grey background(please refer to the attached snapshot).
The issue can be reproduced with sample "DockTabbedMDI".
Could you please help check whether it's a bug or I missed something?
Yes this one is a bug. The fix is to modify CFrame::OnRBNHeightChange as follows:
inline LRESULT CFrame::OnRBNHeightChange(LPNMHDR pNMHDR)
// Notifcation sent by Rebar
The updated code replaces Invalidate with RedrawWindow. The Invalidate was painting an incorrect background color.
You could make this change manually to the code, or override OnRBNHeightChange in CMainFrame, or download the latest SVN update.
David, thank you, the issue is resolved by your suggestion.