I have 4 toolbars that I want to show selectively - 2 on the right side and 2 on the bottom, but never more than one at a time in each location. I tried to use the WINDOWPLACEMENT structure to hide and restore them, but sometimes (not consistently) the ones for the bottom appear on the right when they are restored.

I also tried to create the toolbars by doing the CreateEx somewhere other than the CMainframe.OnCreate and then calling DestroyWindow to get rid of them, but that was unsuccessful.