May 07, 2024, 10:59:01 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Toolbar Placement

Started by Pip1957, July 24, 2006, 08:00:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Pip1957

Using the mdidemo in the examples folder can anyone show me how to position the toolbar above the statusbar. ???

Ionic Wind Support Team

Add the style ACCS_BOTTOM instead of ACCS_TOP.
Ionic Wind Support Team

Pip1957

Paul if I do that it overrites the statusbar, I was wondering if you could place it as you could in Ibasic Pro.

Ionic Wind Support Team

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.
Ionic Wind Support Team