Edit

Share via


CGlobalUtils Class

For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

Syntax

class CGlobalUtils

Members

Public Methods

Name Description
CGlobalUtils::AdjustRectToWorkArea
CGlobalUtils::CalcExpectedDockedRect
CGlobalUtils::CanBeAttached
CGlobalUtils::CanPaneBeInFloatingMultiPaneFrameWnd
CGlobalUtils::CheckAlignment
CGlobalUtils::CyFromString
CGlobalUtils::DecimalFromString
CGlobalUtils::FlipRect
CGlobalUtils::ForceAdjustLayout
CGlobalUtils::GetDockingManager
CGlobalUtils::GetOppositeAlignment
CGlobalUtils::GetPaneAndAlignFromPoint
CGlobalUtils::GetWndIcon
CGlobalUtils::SetNewParent
CGlobalUtils::StringFromCy
CGlobalUtils::StringFromDecimal

Remarks

Inheritance Hierarchy

CGlobalUtils

Requirements

Header: afxglobalutils.h

CGlobalUtils::AdjustRectToWorkArea

void AdjustRectToworkArea(
    CRect& rect,
    CRect* pRectDelta = NULL);

Parameters

[in, out] rect
[in] pRectDelta

Remarks

CGlobalUtils::CalcExpectedDockedRect

void CalcExpectedDockedRect(
    CPaneContainerManager& barContainerManager,
    CWnd* pWndTodock,
    CPoint ptMouse,
    CRect& rectResult,
    BOOL& bDrawTab,
    CDockablePane** ppTargetBar);

Parameters

[in] barContainerManager

[in] pWndTodock

[in] ptMouse

[out] rectResult

[out] bDrawTab

[out] ppTargetBar

Remarks

CGlobalUtils::CanBeAttached

BOOL CanBeAttached(CWnd* pWnd) const;

Parameters

[in] pWnd

Return Value

Remarks

CGlobalUtils::CanPaneBeInFloatingMultiPaneFrameWnd

BOOL CanPaneBeInFloatingMultiPaneFrameWnd(CWnd* pWnd) const;

Parameters

[in] pWnd

Return Value

Remarks

CGlobalUtils::CheckAlignment

BOOL CheckAlignment(
    CPoint point,
    CBasePane* pBar,
    int nSensitivity,
    const CDockingManager* pDockManager,
    BOOL bOuterEdge,
    DWORD& dwAlignment,
    DWORD dwEnabledDockBars = CBRS_ALIGN_ANY,
    LPCRECT lpRectBounds = NULL) const;

Parameters

[in] point

[in] pBar

[in] nSensitivity

[in] pDockManager

[in] bOuterEdge

[out] dwAlignment

[in] dwEnabledDockBars

[in] lpRectBounds

Return Value

Remarks

CGlobalUtils::CyFromString

BOOL CyFromString(
    CY& cy,
    LPCTSTR psz);

Parameters

[out] cy

[in] psz

Return Value

Remarks

CGlobalUtils::DecimalFromString

BOOL DecimalFromString(
    DECIMAL& decimal,
    LPCTSTR psz);

Parameters

[out] decimal

[in] psz

Return Value

Remarks

CGlobalUtils::FlipRect

void FlipRect(
    CRect& rect,
    int nDegrees);

Parameters

[in, out] rect
[in] nDegrees

Remarks

CGlobalUtils::ForceAdjustLayout

void ForceAdjustLayout(
    CDockingManager* pDockManager,
    BOOL bForce = FALSE,
    BOOL bForceInvisible = FALSE);

Parameters

[in, out] pDockManager

[in] bForce

[in] bForceInvisible

Remarks

CGlobalUtils::GetDockingManager

CDockingManager* GetDockingManager(CWnd* pWnd);

Parameters

[in] pWnd

Return Value

Remarks

CGlobalUtils::GetOppositeAlignment

DWORD GetOppositeAlignment(DWORD dwAlign);

Parameters

[in] dwAlign

Return Value

Remarks

CGlobalUtils::GetPaneAndAlignFromPoint

BOOL GetPaneAndAlignFromPoint(
    CPaneContainerManager& barContainerManager,
    CPoint pt,
    CDockablePane** ppTargetControlBar,
    DWORD& dwAlignment,
    BOOL& bTabArea,
    BOOL& bCaption);

Parameters

[in] barContainerManager

[in] pt

[out] ppTargetControlBar

[out] dwAlignment

[out] bTabArea

[out] bCaption

Return Value

Remarks

CGlobalUtils::GetWndIcon

HICON GetWndIcon(CWnd* pWnd);

Parameters

[in] pWnd

Return Value

Remarks

CGlobalUtils::SetNewParent

void SetNewParent(
    CObList& lstControlBars,
    CWnd* pNewParent,
    BOOL bCheckVisibility = TRUE);

Parameters

[in] lstControlBars

[in] pNewParent

[in] bCheckVisibility

Remarks

CGlobalUtils::StringFromCy

BOOL StringFromCy(
    CString& str,
    CY& cy);

Parameters

[out] str

[in] cy

Return Value

Remarks

CGlobalUtils::StringFromDecimal

BOOL StringFromDecimal(
    CString& str,
    DECIMAL& decimal);

Parameters

[out] str

[in] decimal

Return Value

Remarks

See also

Hierarchy Chart
Classes