>Hello,
>I've just retrieved a MDIApp template and a dynamic toolbar lybrary
> (msdntb.dll)
>from the microsoft ftp site. It is quite good for my application but I
>do not cope with the toolbar !
>Indeed, in the MDIapp template I initialized my toolbar with the MDIFrame
>but since it also creates a MDIClient window within it, my toolbar is thus
>inactivated ! it is visible, enabled but when I click on it, the buttons
>don't push down and stay up and I do not catch any WM-COMMAND message in
>my MDIFrame procedure.
>Does anybody know how to get rid of this problem ?
Windows, by default, sizes the MDI Client window to completely fill the
MDI Frame window. What you need to do is disable this default behaviour
and resize the Client yourself, leaving space for the toolbar at the top,
whenever the Frame changes size. ie, process the "WM_SIZE" message for the
Frame window.
Chris
--
--------------------------------------------------------------------------
| Chris Marriott, Warrington, UK | Author of SkyMap v2 shareware |
| CompuServe: 100113,1140 | Mail me for details! |
| Author member of Association of Shareware Professionals (ASP) |
| Windows, C/C++ consultancy undertaken, anywhere in the world. |
--------------------------------------------------------------------------