If a toolbar is about to be docked and there are multiple sides that it could be docked to, the sides indicated in the parameter passed to EnableDocking are used in the following order: top, bottom, left, right. This is done using the CFrameWnd::EnableDocking function, which takes one DWORD parameter that is a set of style bits indicating which side of the frame window accepts docking. To dock toolbars to a frame window, the frame window (or destination) must be enabled to allow docking. See the MFC General sample DOCKTOOL for examples. Setting wrap positions for a fixed-style toolbar Other topics covered in this article include: The last two steps must be performed for each dockable toolbar in your application. If any of these steps are missing, your application will display a standard toolbar. By default, the Application Wizard generates the code that performs the three actions necessary to place a dockable toolbar in your application: If you use the Application Wizard to generate the skeleton of your application, you are asked to choose whether you want dockable toolbars. This article explains how to use dockable toolbars in your applications. A dockable toolbar can be attached, or docked, to any side of its parent window, or it can be detached, or floated, in its own mini-frame window. The Microsoft Foundation Class Library supports dockable toolbars.
0 Comments
Leave a Reply. |