> I had the same problem, but could fix it with help from www.msj.com
> (Microsoft System Journal).
> But there is another problem: when I move the toolbar and resize it (toolbar
> has button groups) I get hal buttons (the window is to small) - could not
> fix this.
> Dowes anyone have an idea?
> Steffen Mann
I encountered the same problem and have a solution for the half-drawn
In addition to Paul DiLascia's code from MSJ add a handler for
WM_WINDOWPOSCHANGED to the flatbar, call the base class version
from within this handler and after that call
This will fix the problem with the half-drawn buttons.
Another problem are toolbar buttons with radiobutton-functionality,
because buttons that change from the 'on-state' to the 'off state'
because of some other button is clicked and changes to the 'on state'
are not properly redrawn. This can be easily fixed by adding a handler
for WM_LBUTTONUP: From this handler first call the base class version
and after that add this call:
PostMessage(WM_IDLEUPDATECMDUI, (WPARAM)TRUE, 0L);
There is still some strange behaviour in the flat toolbar, even if
you apply these fixes, for instance if a floating toolbar is
docked at one edge where another toolbar is docked, the frame around
the newly docked toolbar is not properly drawn if you do not place
the toolbar *exactly* onto the location where it will afterwards
appear in the docked state.
But maybe someone else will fix this problem.
Stefan Kuhr, software development staff Homag AG Schopfloch, Germany
(Please remove REMOVE_THIS from my email address to send me mail.)