Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Restrict Toolbar docking orientation
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Restrict Toolbar docking orientation

 Post Reply Post Reply
Author
Message
Duane View Drop Down
Groupie
Groupie
Avatar

Joined: 16 May 2023
Location: Montreal
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Duane Quote  Post ReplyReply Direct Link To This Post Topic: Restrict Toolbar docking orientation
    Posted: 28 July 2023 at 9:54am
I have a CXTPToolbar from a CommandBar that has a couple of combo boxes.  When the user drags them to dock vertically the combo boxes are not shown.  It would be acceptable to allow only horizontal orientation when docking.  Is this possible?
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 31 July 2023 at 9:40am
//-----------------------------------------------------------------------
// Summary:
//     Call this method to set docking flags.
// Parameters:
//     dwFlags - Flags for docking. Can be any of the values listed in the Remarks section.
// Remarks:
//     dwFlags parameter can be one or more of the following:
//     * <b>xtpFlagAlignTop</b>: Allows docking at the top of the client area.
//     * <b>xtpFlagAlignBottom</b>: Allows docking at the bottom of the client area.
//     * <b>xtpFlagAlignLeft</b>: Allows docking on the left side of the client area.
//     * <b>xtpFlagAlignRight</b>: Allows docking on the right side of the client area.
//     * <b>xtpFlagFloating</b>: Allows floating.
//     * <b>xtpFlagHideWrap</b>: Allows to hide wrapped controls.
//     * <b>xtpFlagStretched</b>: Indicates the bar is stretched.
//-----------------------------------------------------------------------
void EnableDocking(DWORD dwFlags = xtpFlagAlignAny | xtpFlagFloating | xtpFlagHideWrap);

Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.