Using the mdidemo in the examples folder can anyone show me how to position the toolbar above the statusbar. ???
Add the style ACCS_BOTTOM instead of ACCS_TOP.
Paul if I do that it overrites the statusbar, I was wondering if you could place it as you could in Ibasic Pro.
It does the same thing in the IBasic Pro MDI demo too. I think the demo your talking about wasn't an MDI one and I was calculating the positions in response to WM_SIZE. Since Tom never restored the forums it's probably lost forever.
In any event if you override OnSize in the frame, and return TRUE, you can calculate everything your self. The m_hClient member of CWindow contains the handle of the client window for the frame. So the steps required to have items 'stacked' in the frame window would be to:
- calculate the height of both elements
- Subtract this from the clients height (the bottom of the rectangle)
- Use the API function MoveWindow to change the size of the client window
- Then move the toolbar above the status bar.
Paul.