HOWTO: How to Save and Restore State of Dockable Toolbars (141675)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 2.2
- Microsoft Visual C++, 32-bit Editions 4.0
This article was previously published under Q141675 SUMMARY
MFC's CToolBar class makes it easy to create floating toolbars that can
dock to your window. Each time you run your application, these toolbars
will be re-created in the default locations. This article shows how to
override this behavior to save the toolbar positions and docking state
and restore them the next time the application is executed.
REFERENCES
DOCKTOOL sample.
Online help for:
CFrameWnd::LoadBarState,
CFrameWnd::SaveBarState,
CFrameWnd::GetDockState,
CFrameWnd::SetDockState.
Modification Type: | Major | Last Reviewed: | 10/24/2003 |
---|
Keywords: | kbhowto kbMFCCtrlBar kbToolbar KbUIDesign KB141675 |
---|
|