Notification of Toolbar Docking

How can I tell if a toolbar is docking or undocking?  When the toolbar docks or undocks, the child windows shift, so I need to be able to notify them that they have moved.  Docking or undocking a toolbar doesn't seem to generate a WM_MOVE message for some reason.  Does anyone know how to detect that the toolbar has been docked or undocking?
prokewlAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

chensuCommented:
CControlBar::IsFloating
0
prokewlAuthor Commented:
Sorry, I should've been a little more clearer.  Is there a way for me to get the toolbar to send me a message that it is being docked or not docked instead of me polling the toolbar.  Thanks for any help!
0
inprasCommented:
Hi
Why don't U create UR own class derived from CToolBar and rplace the object of CToolBar with UR tool bar obkject and to tool bar class map the message ON_WM_WINDOWPOSCHANGED
U will get the notification when ever the toolbar moves
Though this is not the exact way but I think it solves UR problem.

Hope this helps
0
migelCommented:
Hi!
Try derive your own class from CToolBar and override CalcFixedLayout(...)
for example:
{
CSize sz = CToolBar::CalcFixedLayout(...);
if (IsFloating() != m_bFloating)
{
m_bFloating = IsFloating();
//SendMessage here;
}
}
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
migelCommented:
m_bFloating - member of the your derived class
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.