15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


Juxtaposing Dockable Toolbars

Kartikeya G. Rindani -- kartik@corus.com
Monday, April 22, 1996

Win 95 MSVC 4.0

I have made a few dockable toolbars in my app. With toolbars appearing =
one below the other, the screen has started looking like a plane's =
cockpit!!!  I made a few toolbars invisible which are unnecessary at the =
start up of the app.  Now I want to juxtapose the remaining toolbars to =
optimize the space. How do I do this?



Niels Ull Jacobsen -- nuj@kruger.dk
Thursday, April 25, 1996

[Mini-digest: 2 responses]

At 01:39 22-04-96 +-5-30, you wrote:
>Win 95 MSVC 4.0
>
>I have made a few dockable toolbars in my app. With toolbars appearing o=
ne
below the other, the screen has started looking like a plane's cockpit!!!=
  I
made a few toolbars invisible which are unnecessary at the start up of th=
e
app.  Now I want to juxtapose the remaining toolbars to optimize the spac=
e.
How do I do this?

Look at the DockTool sample, specifically the CMainFrame functions.
>
>
>
Niels Ull Jacobsen, Kr=FCger A/S (nuj@kruger.dk)
Everything stated herein is THE OFFICIAL POLICY of the entire Kruger grou=
p
and should be taken as legally binding in every respect. Pigs will grow
wings and fly.





-----From: Bill McGarry 

At 01:39 AM 4/22/96 +-5-30, you wrote:
>Win 95 MSVC 4.0
>
>I have made a few dockable toolbars in my app. With toolbars appearing one
below the other, the screen has started looking like a plane's cockpit!!!  I
made a few toolbars invisible which are unnecessary at the start up of the
app.  Now I want to juxtapose the remaining toolbars to optimize the space.
How do I do this?
>

Look in the "DockTool" sample on the MSDEV CD.  What you do is dock the
first visible tool bar using "DockControlBar" (MFC) and then call the
function "DockControlBarLeftOf" (in mainfrm.cpp in the sample) which will
put the specified toolbars side by side.  Just keep using the same function
to position your toolbars to where you would like to see them initially.

Also don't forget to store the position, state, etc of the toolbars in your
.INI file or the registry.  This is very simple -- just use the
"SaveBarState" and "LoadBarState" functions.  Then the tool bars will show
up exactly as they were when the program was exited.


Bill McGarry
Olivetti North America
billm@mail.isc-br.com





| Вернуться в корень Архива |