well... the toolbar buttons display grey if you click on another cformview (for example) the solution that worked in my case was not to let any view except the one with the toolbar to get activated, i just overloaded OnMouseActivate in those views like this:
pDesktopWnd->SetActiveWindow() activates the top most window (in case the window is not active and the user clicks the view).
returning MA_NOACTIVATE doesn't allows the view to activate, but allows the mouse click to continue, so the view still gets the mouse click.
See MFC Documentation on OnMouseActivate for more info.
sorry for the quick, ugly, english, but i'm kinda busy :D
btw, giving focus to the toolbar on OnInitialUpdate is also a good idea :)
I have had great help from your code to add toolbars to
CFormView. Unfortunately the tooltips won't work.
So I downloaded your demoprogram, and there all the tooltips, EXCEPT the ones on toolbar nr 3 button 1 and 2....works.
This is really strange, and I can't find the reason to this problem.
Maybe someone have an idea?