Cdock



  1. Cdockcontext
  2. Cdock Mac
  3. Cdock 2
-->

Amazon.com Return Policy: You may return any new computer purchased from Amazon.com that is 'dead on arrival,' arrives in damaged condition, or is still in unopened boxes, for a full refund within 30 days of purchase. Amazon.com reserves the right to test 'dead on arrival' returns and impose a customer fee equal to 15 percent of the product sales price if the customer misrepresents the. CDock is a small program to install a 2D dock on OS X 10.9 (Mavericks) and 10.10 (Yosemite). There are several dock styles included and users can also create their own custom docks. Features: Customize Mavericks Dock, Customize Yosemite Dock, 2D dock in Mavericks, Transparent Dock.

For more detail see the source code located in the VCatlmfcsrcmfc folder of your Visual Studio installation.

Provides functionality for arranging panes that are derived from the CPane Class into sets of rows.

Cdock

Syntax

Members

Public Methods

NameDescription
CDockSite::AddRow
CDockSite::AdjustDockingLayout(Overrides CBasePane::AdjustDockingLayout.)
CDockSite::AdjustLayout(Overrides CBasePane::AdjustLayout.)
CDockSite::AlignDockSite
CDockSite::CalcFixedLayout(Overrides CBasePane::CalcFixedLayout.)
CDockSite::CanAcceptPane(Overrides CBasePane::CanAcceptPane.)
CDockSite::CreateEx(Overrides CBasePane::CreateEx.)
CDockSite::CreateRow
CDockSite::DockPane(Overrides CBasePane::DockPane.)
CDockSite::DoesAllowDynInsertBefore(Overrides CBasePane::DoesAllowDynInsertBefore.)
CDockSite::FindRowIndex
CDockSite::FixupVirtualRects
CDockSite::GetDockSiteID
CDockSite::GetDockSiteRowsList
CDockSite::IsAccessibilityCompatible(Overrides CBasePane::IsAccessibilityCompatible.)
CDockSite::IsDragMode
CDockSite::IsLastRow
CDockSite::IsRectWithinDockSite
CDockSite::IsResizable(Overrides CBasePane::IsResizable.)
CDockSite::MovePane
CDockSite::OnInsertRow
CDockSite::OnRemoveRow
CDockSite::OnResizeRow
CDockSite::OnSetWindowPos
CDockSite::OnShowRow
CDockSite::OnSizeParent
CDockSite::PaneFromPointReturns a pane that is docked in the dock site at the point specified by the given parameter.
CDockSite::DockPaneLeftOfDocks a pane to the left of another pane.
CDockSite::FindPaneByIDReturns the pane that is identified by the given ID.
CDockSite::GetPaneListReturns a list of panes that are docked at the dock site.
CDockSite::RectSideFromPoint
CDockSite::RemovePane
CDockSite::RemoveRow
CDockSite::ReplacePane
CDockSite::RepositionPanes
CDockSite::ResizeDockSite
CDockSite::ResizeRow
CDockSite::ShowPaneShows the pane.
CDockSite::ShowRow
CDockSite::SwapRows

Remarks

The framework creates CDockSite objects automatically when you call CFrameWndEx::EnableDocking. Dock site windows are positioned at the edge of the client area on the main frame window.

You usually do not have to call the services provided by the dock site because CFrameWndEx Class handles these services.

Example

The following example demonstrates how to create an object of the CDockSite class.

Inheritance Hierarchy

CObject
└ CCmdTarget
└ CWnd
└ CBasePane
└ CDockSite

Requirements

Header: afxDockSite.h

CDockSite::AddRow

Parameters

[in] pos

[in] nHeight

Return Value

Remarks

CDockSite::AdjustDockingLayout

Remarks

CDockSite::AdjustLayout

Remarks

CDockSite::AlignDockSite

Parameters

[in] rectToAlignBy

[in] rectResult

[in] bMoveImmediately

Remarks

CDockSite::CalcFixedLayout

Parameters

[in] bStretch

[in] bHorz

Return Value

Remarks

CDockSite::CanAcceptPane

Parameters

[in] pBar

Return Value

Remarks

CDockSite::CreateEx

Parameters

[in] dwStyleEx

[in] dwStyle

[in] rect

[in] pParentWnd

[in] dwControlBarStyle

[in] pContext

Return Value

Remarks

CDockSite::CreateRow

Parameters

[in] pParentDockBar

[in] nOffset

[in] nRowHeight

Return Value

Remarks

CDockSite::DockPane

Parameters

[in] pWnd

[in] dockMethod

[in] lpRect

Remarks

CDockSite::DockPaneLeftOf

Docks a pane to the left of another pane.

Parameters

pBarToDock
[in, out] A pointer to the pane to be docked to the left of pTargetBar.

pTargetBar
[in, out] A pointer to the target pane.

Return Value

TRUE if the pane is docked successfully; otherwise, FALSE.

Remarks

CDockSite::DoesAllowDynInsertBefore

Return Value

Remarks

CDockSite::FindPaneByID

Returns the pane with the given ID.

Parameters

nID
[in] The command ID of the pane to be found.

Return Value

A pointer to the pane with the specified command ID, or NULL if the pane is not found.

Remarks

CDockSite::FindRowIndex

Parameters

[in] pRow

Return Value

Remarks

CDockSite::FixupVirtualRects

Remarks

CDockSite::GetDockSiteID

Return Value

Remarks

CDockSite::GetDockSiteRowsList

Return Value

Remarks

CDockSite::GetPaneList

Returns a list of panes that are docked in the dock site.

Return Value

A read-only reference to the list of panes currently docked in the docking bar.

CDockSite::IsAccessibilityCompatible

Return Value

Remarks

CDockSite::IsDragMode

Return Value

Remarks

CDockSite::IsLastRow

Parameters

[in] pRow

Return Value

Remarks

CDockSite::IsRectWithinDockSite

Parameters

[in] rect

[in] ptDelta

Return Value

Remarks

CDockSite::IsResizable

Return Value

Remarks

CDockSite::MovePane

Parameters

[in] pWnd

[in] nFlags

[in] ptOffset

Return Value

Remarks

CDockSite::OnInsertRow

Parameters

[in] pos

Remarks

CDockSite::OnRemoveRow

Parameters

[in] pos

[in] bByShow

Remarks

CDockSite::OnResizeRow

Parameters

[in] pRowToResize

[in] nOffset

Return Value

Remarks

CDockSite::OnSizeParent

Parameters

[in] rectAvailable

[in] nSide

[in] bExpand

[in] nOffset

Remarks

CDockSite::OnSetWindowPos

Parameters

[in] pWndInsertAfter

[in] rectWnd

[in] nFlags

Return Value

Remarks

CDockSite::OnShowRow

Parameters

[in] pos

[in] bShow

Remarks

CDockSite::PaneFromPoint

Returns a pane that is docked in the dock site at the point specified by the given parameter.

Parameters

pt
[in] A point, in screen coordinates, for the pane to retrieve.

Return Value

A pointer to the pane located at the specified point or NULL if no pane was present at the specified point.

Remarks

Cdockcontext

CDockSite::RectSideFromPoint

Parameters

[in] rect

[in] point

Return Value

Remarks

CDockSite::RemovePane

Parameters

[in] pWnd

[in] dockMethod

Remarks

CDockSite::RemoveRow

Parameters

[in] pRow

Remarks

CDockSite::ReplacePane

Parameters

[in] pOldBar

[in] pNewBar

Return Value

Cdock Mac

Remarks

CDockSite::RepositionPanes

Parameters

[in] rectNewClientArea

Remarks

CDockSite::ResizeDockSite

Parameters

[in] nNewWidth

[in] nNewHeight

Remarks

CDockSite::ResizeRow

Parameters

[in] pRow

[in] nNewSize

[in] bAdjustLayout

Return Value

Remarks

CDockSite::ShowPane

Shows the pane.

Parameters

pBar
[in, out] A pointer to the pane to be shown or hidden.

bShow
[in] TRUE to specify that the pane is to be shown; FALSE to specify that the pane is to be hidden.

bDelay
[in] TRUE to specify that the layout of the pane should be delayed until after the pane is shown; otherwise, FALSE.

Cdock 2

bActivate
[in] This parameter is not used.

Return Value

TRUE if the pane was shown or hidden successfully. FALSE if the specified pane does not belong to this dock site.

Remarks

Call this method to show or hide docked panes. Normally, you do not have to call CDockSite::ShowPane directly, because it is called by the parent frame window or by the base pane.

CDockSite::ShowRow

Parameters

[in] pRow

[in] bShow

[in] bAdjustLayout

Remarks

CDockSite::SwapRows

Parameters

[in] pFirstRow

[in] pSecondRow

Remarks

See also

Hierarchy Chart
Classes
CBasePane Class