I am trying to fix a toolbar related problem. My program is Single Document Interface, MFC based, written in VC++ 5 and I have created a second toolbar. Either toolbar can be shown or hidden, as usual, via the View menu and they are shown as checked or unchecked. The problem comes when my toolbar is floated and then closed by the X button instead of from the menu. When the View menu is then opened there is still a tick against the second toolbar. I want to detect the fact that the floating toolbar was closed and probably make use of GetMenu() to clear the checkmark.
In MainFrm.h I have declared the second toolbar alongside the main one and added a global shown / hidden flag.