our applications are using the CMFCStatusBar functionality which works great!
However, we currently are using a custom statusbar (overridden from CMFCStatusBar) to allow custom controls (mostly CStatic derivates) be positioned on it.
MFC calculates the pane positions inside the status bar. We create custom CStatic windows to be positioned in side one or more individual panes. Therefore, we will reposition these controls to the corresponding pane size and position.
MFC internally calls CMFCStatusBar::RecalcLayout each time the layout should be recalculated. At this point, it would be great to reposition our custom CStatic controls to the new pane sizes and positions. Unfortunately, CMFCStatusBar::RecalcLayout() is not implemented as 'virtual' function.
currently we are using the following workaround:
override the function CMyMFCStatusBar::DoPaint()
PositionControls(); // reposition our custom CStatic controls since we don't known if the controls have been repositioned in the mean time