In trying to troubleshoot difficulty creating a toolbar, I used Spy++ to look at the attributes of the toolbar window. When I select the window from the list in Spy++ and right-click it, select Properties, Spy++ hangs indefinitely.
The toolbar is being created by the following code, in a class derived from CFrameWnd. CFitToolBar is dervied from CToolBar:
The result of this code is nothing, although both Create and LoadToolBar return 1 (success). IDR_FitToolBar is a toolbar resource created by the toolbar editor (i e, a set of images for the buttons).
Q1) How to use Spy++ (i e, get around the bug).
Q2) How to create a toolbar which is visible and shows its buttons.