Sdílet prostřednictvím


CGlobalUtils – třída

Další podrobnosti najdete ve zdrojovém kódu ve složce VC\atlmfc\src\mfc instalace sady Visual Studio.

Syntaxe

class CGlobalUtils

Členové

Veřejné metody

Název Popis
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

Poznámky

Hierarchie dědičnosti

CGlobalUtils

Požadavky

Hlavička: afxglobalutils.h

CGlobalUtils::AdjustRectToWorkArea

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

Parametry

[in, out] Rect
[v] pRectDelta

Poznámky

CGlobalUtils::CalcExpectedDockedRect

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

Parametry

[v] barContainerManager

[v] pWndTodock

[v] ptMouse

[ven] rectResult

[ven] bDrawTab

[ven] ppTargetBar

Poznámky

CGlobalUtils::CanBeAttached

BOOL CanBeAttached(CWnd* pWnd) const;

Parametry

[v] pWnd

Návratová hodnota

Poznámky

CGlobalUtils::CanPaneBeInFloatingMultiPaneFrameWnd

BOOL CanPaneBeInFloatingMultiPaneFrameWnd(CWnd* pWnd) const;

Parametry

[v] pWnd

Návratová hodnota

Poznámky

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;

Parametry

[v] bod

[v] pBar

[v] NSensitivity

[v] pDockManager

[v] bOuterEdge

[ven] dwAlignment

[v] dwEnabledDockBars

[v] lpRectBounds

Návratová hodnota

Poznámky

CGlobalUtils::CyFromString

BOOL CyFromString(
    CY& cy,
    LPCTSTR psz);

Parametry

[ven] Cy

[v] psz

Návratová hodnota

Poznámky

CGlobalUtils::D ecimalFromString

BOOL DecimalFromString(
    DECIMAL& decimal,
    LPCTSTR psz);

Parametry

[ven] desetinný

[v] psz

Návratová hodnota

Poznámky

CGlobalUtils::FlipRect

void FlipRect(
    CRect& rect,
    int nDegrees);

Parametry

[in, out] Rect
[v] nDegrees

Poznámky

CGlobalUtils::ForceAdjustLayout

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

Parametry

[in, out] pDockManager

[v] bForce

[v] bForceInvisible

Poznámky

CGlobalUtils::GetDockingManager

CDockingManager* GetDockingManager(CWnd* pWnd);

Parametry

[v] pWnd

Návratová hodnota

Poznámky

CGlobalUtils::GetOppositeAlignment

DWORD GetOppositeAlignment(DWORD dwAlign);

Parametry

[v] dwAlign

Návratová hodnota

Poznámky

CGlobalUtils::GetPaneAndAlignFromPoint

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

Parametry

[v] barContainerManager

[v] Pt

[ven] ppTargetControlBar

[ven] dwAlignment

[ven] bTabArea

[ven] bCaption

Návratová hodnota

Poznámky

CGlobalUtils::GetWndIcon

HICON GetWndIcon(CWnd* pWnd);

Parametry

[v] pWnd

Návratová hodnota

Poznámky

CGlobalUtils::SetNewParent

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

Parametry

[v] lstControlBars

[v] pNewParent

[v] bCheckVisibility

Poznámky

CGlobalUtils::StringFromCy

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

Parametry

[ven] Str

[v] Cy

Návratová hodnota

Poznámky

CGlobalUtils::StringFromDecimal

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

Parametry

[ven] Str

[v] desetinný

Návratová hodnota

Poznámky

Viz také

Graf hierarchie
Třídy