If you look at your example app and move an open file dialog box from top to bottom over the toolbar you'll notice the buttons don't get redrawn correctly (the buttons get left in an up position).
You can fix this by changing line 398 from:
BOOL bHasCursor = rc.PtInRect(cursor);
BOOL bHasCursor = rc.PtInRect(cursor) && GetActiveWindow() == GetParent();
Also something I haven't found a good fix for yet is that moving a window (open file for example) from right to left or bottom to top over the toolbar messes up the display (the background doesn't get drawn right) of disabled toolbar buttons. The only thing that fixes this is to disable the embossing code in DrawDisabledButton().
This sample application has the same problem that i have.
When i grap a toolbar and drag it out so that it has its own frame(floated ?) and push the x to close. How can i bring it back without starting again?
I've been using CToolBarEx for a while but now I would need to be able to display a dropdown arrow beside a
button like the ones supported in the toolbar in the new common controls. Can this be added ?