|
|
atldock.h
It adds the ability to dock and float windows at the edges of the
WTL application.
It's easy to add the docking framework to your project. Assuming
it's a MDI project (though it works with SDI projects too) you
need to add the atldock.h header to your includes.
Create the docking window after the MDI client has been
created and set, like this:
Then create the views and add them to the docking framework
using the AddWindow() method. Use the
DockWindow() method to place the window in its
initial docking position.
And that's it.
You may want to hook up the views and the MDI client for window messaging too. There are several options (like using the PreTranslateMessage() method) but you
might as well use the message map macros:
The docking class supports a few optional settings, which controls how windows are managed when they are closed. Much of this support was added by Mike Simon. Use the SetExtendedDockStyle to control the behaviour.
Other ExtensionsAlso included in the package are classes for an alternate framework look. They are based on modifications Jens Nilsson sent me. They demonstrate how to override the custom painting of splitter bars and grippers.To use them, include atldock2.h and use CFlatDockingWindow instead of
CDockingWindow.
Jens Nilsson also contributed with a "stacking" version, which behaves a bit like the VISIO stencil user interface. You can download it here. Source Code DependenciesMicrosoft WTL 3.1 LibrarySee AlsoA WTL sample that uses the classDownload Files
Written by Bjarke Viksoe. Article submitted 6/7/2001. To the top
|
|||