Multiple toolbars
Harry Hahne -- hahne@epas.utoronto.ca
Saturday, July 20, 1996
Environment: Visual C++ 4.1, Windows 95:
I want to have multiple toolbars which are user selectable, similar to what
Visual C++ has. I would like the default position of the toolbars to be side
by side. When I create more than one toolbar, the additional toolbars appear
under the first one, not side by side. I tried the CBRS_FLOAT_MULTI
parameter with EnableDocking(), but it made no difference.
How can I change this behaviour? Do I have to specify the rectangle where
the additional toolbars should appear with DockControlBar()?
Harry Hahne
Kostya Sebov -- sebov@is.kiev.ua
Thursday, July 25, 1996
[Mini-digest: 3 responses]
> Environment: Visual C++ 4.1, Windows 95:
>
> I want to have multiple toolbars which are user selectable, similar to what
> Visual C++ has. I would like the default position of the toolbars to be side
> by side. When I create more than one toolbar, the additional toolbars appear
> under the first one, not side by side. I tried the CBRS_FLOAT_MULTI
> parameter with EnableDocking(), but it made no difference.
>
> How can I change this behaviour? Do I have to specify the rectangle where
> the additional toolbars should appear with DockControlBar()?
>
> Harry Hahne
>
Look at the DOCKTOOL sample (\MSDEV\SAMPLES\MFC\GENERAL\DOCKTOOL). Its
CMainFrame::DockBarLetfOf() does exactly what you need.
Sincerely,
---
Kostya Sebov.
----------------------------------------------------------------------------
Tel: (38 044) 266-6387 | Fax: (38 044) 266-6195 | E-mail: sebov@is.kiev.ua
-----From: Dan Kirby
Yes, use DockControlBar(). Look at the DOCKTOOL MFC example which is included on the VC++ CD. It demonstrates how to do this.
--dan
-----From: "Robertson David"
I have tried the 'DockLeftOf' approach used in DOCKTOOL.
It works if you are using bitmaps for toolbars (and LoadBitmap).
It did not work when using a toolbar resource (and LoadToolBar).
Manolis Chr.Papadopoulos -- papadop@metal.ntua.gr
Thursday, August 08, 1996
------ =_NextPart_000_01BB852C.DA893160
Content-Type: text/plain; charset="us-ascii"
| Вернуться в корень Архива
|