> It's been quite a bit of time since last I played with the GUI like
> this, but I suppose that the border and caption do not belong to the
> toolbar's window when floating. I assume you need to call GetParent( )
> to get the window on which the toolbar is resting, and then call
> GetWindowRect( ) on that window. I have no idea of exactly which class
> in the MFC hierarchy implements that functionality, but I suppose you
> can simply use the CWnd version for your purpose.
I can echo that the tool bar is indeed embedded in another window when
floating. If you think about it, this allows the toolbar to remain simply a
blank (borderless and captionless) window with buttons on, just as it is
when docked to the frame. When floating, it is acting a bit like a CView -
it is a child window to a frame (the frame's client window). I can't find
what class that frame is of... it may simply be CFrameWnd, but you're right
in saying that GetParent() should grab what you need.
--
Jason Teagle
[EMAIL PROTECTED]
