I have created dockable toolbar class derived from TDockableControlBar. Everything works just fine, but I have trouble hiding/showing that toolbar.
code for hiding/showing toolbar:
if ( Toolbar->IsWindowVisible()
)
Toolbar->ShowWindow( SW_HIDE );
else
{
Toolbar->ShowWindow( SW_SHOW );
}
case 1: toolbar is docked (doesn't matter where)
toolbar disapears, but the area where it was docked doesn't.
case 2: toolbar is floating
toolbar remains visible and acts very strange. The gadgets aren't repainted, doen't respond to mouse clicks, mouse moving, but the border and title is repainted. I can make toolbar dock and then it works as if it is visible. And if i make it floating again, it works as if it is visible.
And one more thing, when toolbar is floating and i click 'Close' button ( X at top-right corner) toolbar disapears and i can set it visible again.
What to do?
P.S. I'm using Borland C++ 5.02
Start Free Trial