DataMekanix Home Docking Windows Made Easy


home / CSizingControlBar / features


 

Current version: 2.44
Last updated: Mar 31, 2002

CSizingControlBar:
resizable control bars

by Cristi Posea

If you ever wondered how the ClassView, Output and other windows in Microsoft® DevStudioTM were made, this section is for you. The functionality is somewhat like DevStudioTM's control bars. However, the look is not the same, as the main goal was to get an easy to use class...

Features

  • Resizable control bar, that can be resized both when docked and when floating.

  • Multiple sizing control bars can be docked on the same row/column.

  • Full dynamic resizing, both when docked and floating, including diagonal resizing when floating.

  • State persistence support (SaveState/LoadState).

  • Gripper with "hide bar" flat button.

  • Memory DC flicker-less NC painting.

  • Sample extension class with focus auto-sensing text caption. On Win98/Win2k, the caption is painted with gradient.

  • No custom resources were used (bitmaps, cursors, strings, etc.), so the integration is easier and you have full control over the resources you eventually use in derived classes.

  • Easy to use: just derive your own control bar(s) from CSizingControlBar then add your child controls.

  • Optional Instant Resizing Bar mode - create the bar, then add a child control which will be automagically resized, without the need of a derived class for the bar.

Environment

VC++ 5.0-7.0; MFC; Win95/98/Me/NT4/2000/XP; UNICODE enabled

Download

License information

The source code is Copyright (C) 1998-2002 Cristi Posea. All rights reserved.

This code is free for personal and commercial use, providing the copyright notice remains intact in the source files and all eventual changes are clearly marked with comments. You must obtain the author's consent before you can include this code in a software library.

No warrantee of any kind, express or implied, is included with this software; use at your own risk, responsibility for damages (if any) to anyone resulting from the use of this software rests entirely with the user.

Download CSizingControlBar:

File name Description Version Size Location Speed
sizecbar-v2.44.zip source code & samples 2.44 66k datamekanix.com fast
sizecbar-v2.43.zip source code & samples 2.43 64k datamekanix.com fast
sizecbar_src.zip source code & samples 2.43 64k codeproject.com fast

Previous (older) versions are available upon request.

Acknowledgements

  • Thanks to Harlan R. Seymour for his continuous support during development of this code.

  • Thanks to Dundas Software for the opportunity to test this code on real-life applications.

  • Some ideas for the gripper came from the CToolBarEx flat toolbar by Joerg Koenig. Thanks, Joerg!

  • Thanks to Robert Wolpow for the CDockContext-based diagonal resizing code.

  • Thanks to the following people for various bug fixes and/or enhancements: Chris Maunder, Jakawan Ratiwanich, Udo Schaefer, Anatoly Ivasyuk, Peter Hauptmann, DJ(?), Pat Kusbel, Aleksey Malyshev.

  • And, of course, many thanks to all of you who used this code, for the invaluable feedback I received.


Copyright © 1998-2002 DataMekanix. All rights reserved.