CompuServe Messages

#CToolbar and CMDIChild

    08-Jul-94 10:24:28
Fm: Steve McAdams 72274,3160
To: Matthew Ferm 71310,207
>> From within my view (or document, app, frame, etc.), how can I figure out the number and size of the toolbars I have at the top of my window? << Aside from writing them down when you create them? I think the best you can do is traverse the frame's list of child-windows and check using CObject::IsKindOf or one of its friends to see if you found a CControlBar derivative. This won't necessarily work for all toolbars, just those derived from CControlBar (obvious, I guess). -steve