CGlobalUtils Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CGlobalUtils Class.

INCLUDEcpp_fp_under_construction]

class CGlobalUtils  

Public Methods

NameDescription
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

CGlobalUtils

Header: afxglobalutils.h

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

[in, out] rect
[in] pRectDelta

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

BOOL CanBeAttached(CWnd* pWnd) const;  

Parameters

[in] pWnd

Return Value

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

BOOL CanPaneBeInFloatingMultiPaneFrameWnd(CWnd* pWnd) const;  

Parameters

[in] pWnd

Return Value

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

BOOL CyFromString(
    CY& cy,  
    LPCTSTR psz);

Parameters

[out] cy
[in] psz

Return Value

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

BOOL DecimalFromString(
    DECIMAL& decimal,  
    LPCTSTR psz);

Parameters

[out] decimal
[in] psz

Return Value

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

void FlipRect(
    CRect& rect,  
    int nDegrees);

Parameters

[in, out] rect
[in] nDegrees

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

[in, out] pDockManager
[in] bForce
[in] bForceInvisible

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

CDockingManager* GetDockingManager(CWnd* pWnd);

Parameters

[in] pWnd

Return Value

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

DWORD GetOppositeAlignment(DWORD dwAlign);

Parameters

[in] dwAlign

Return Value

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

HICON GetWndIcon(CWnd* pWnd);

Parameters

[in] pWnd

Return Value

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

[in] lstControlBars
[in] pNewParent
[in] bCheckVisibility

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

[out] str
[in] cy

Return Value

Remarks

This topic is included for completeness. For more detail see the source code located in the VC\atlmfc\src\mfc folder of your Visual Studio installation.

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

Parameters

[out] str
[in] decimal

Return Value

Remarks

Hierarchy Chart
Classes

Show: