Compartir a través de


Clase CGlobalUtils

Para obtener información más detallada, consulta el código fuente que se ubica en la carpeta VC\atlmfc\src\mfc de la instalación de Visual Studio.

Sintaxis

class CGlobalUtils

Miembros

Métodos públicos

Nombre Descripción
CGlobalUtils::AdjustRectToWorkArea
CGlobalUtils::CalcExpectedDockedRect
CGlobalUtils::CanBeAttached
CGlobalUtils::CanPaneBeInFloatingMultiPaneFrameWnd
CGlobalUtils::CheckAlignment
CGlobalUtils::CyFromString
CGlobalUtils::D ecimalFromString
CGlobalUtils::FlipRect
CGlobalUtils::ForceAdjustLayout
CGlobalUtils::GetDockingManager
CGlobalUtils::GetOppositeAlignment
CGlobalUtils::GetPaneAndAlignFromPoint
CGlobalUtils::GetWndIcon
CGlobalUtils::SetNewParent
CGlobalUtils::StringFromCy
CGlobalUtils::StringFromDecimal

Comentarios

Jerarquía de herencia

CGlobalUtils

Requisitos

Encabezado: afxglobalutils.h

CGlobalUtils::AdjustRectToWorkArea

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

Parámetros

[in o out] rect
[in] pRectDelta

Comentarios

CGlobalUtils::CalcExpectedDockedRect

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

Parámetros

[in] barContainerManager

[in] pWndTodock

[in] ptMouse

[out] rectResult

[out] bDrawTab

[out] ppTargetBar

Comentarios

CGlobalUtils::CanBeAttached

BOOL CanBeAttached(CWnd* pWnd) const;

Parámetros

[in] pWnd

Valor devuelto

Comentarios

CGlobalUtils::CanPaneBeInFloatingMultiPaneFrameWnd

BOOL CanPaneBeInFloatingMultiPaneFrameWnd(CWnd* pWnd) const;

Parámetros

[in] pWnd

Valor devuelto

Comentarios

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;

Parámetros

[in] point

[in] pBar

[in] nSensitivity

[in] pDockManager

[in] bOuterEdge

[out] dwAlignment

[in] dwEnabledDockBars

[in] lpRectBounds

Valor devuelto

Comentarios

CGlobalUtils::CyFromString

BOOL CyFromString(
    CY& cy,
    LPCTSTR psz);

Parámetros

[out] cy

[in] psz

Valor devuelto

Comentarios

CGlobalUtils::D ecimalFromString

BOOL DecimalFromString(
    DECIMAL& decimal,
    LPCTSTR psz);

Parámetros

[out] decimal

[in] psz

Valor devuelto

Comentarios

CGlobalUtils::FlipRect

void FlipRect(
    CRect& rect,
    int nDegrees);

Parámetros

[in o out] rect
[in] nDegrees

Comentarios

CGlobalUtils::ForceAdjustLayout

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

Parámetros

[in, out] pDockManager

[in] bForce

[in] bForceInvisible

Comentarios

CGlobalUtils::GetDockingManager

CDockingManager* GetDockingManager(CWnd* pWnd);

Parámetros

[in] pWnd

Valor devuelto

Comentarios

CGlobalUtils::GetOppositeAlignment

DWORD GetOppositeAlignment(DWORD dwAlign);

Parámetros

[in] dwAlign

Valor devuelto

Comentarios

CGlobalUtils::GetPaneAndAlignFromPoint

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

Parámetros

[in] barContainerManager

[in] pt

[out] ppTargetControlBar

[out] dwAlignment

[out] bTabArea

[out] bCaption

Valor devuelto

Comentarios

CGlobalUtils::GetWndIcon

HICON GetWndIcon(CWnd* pWnd);

Parámetros

[in] pWnd

Valor devuelto

Comentarios

CGlobalUtils::SetNewParent

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

Parámetros

[in] lstControlBars

[in] pNewParent

[in] bCheckVisibility

Comentarios

CGlobalUtils::StringFromCy

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

Parámetros

[out] str

[in] cy

Valor devuelto

Comentarios

CGlobalUtils::StringFromDecimal

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

Parámetros

[out] str

[in] decimal

Valor devuelto

Comentarios

Consulte también

Gráfico de jerarquías
Clases