Partager via


CGlobalUtils, classe

Note

La bibliothèque Microsoft Foundation Classes (MFC) continue d’être prise en charge. Toutefois, nous n’ajoutons plus de fonctionnalités ni ne mettons à jour la documentation.

Pour plus d’informations, consultez le code source situé dans le dossier VC\atlmfc\src\mfc de votre installation de Visual Studio.

Syntaxe

class CGlobalUtils

Membres

Méthodes publiques

Nom Description
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

Notes

Hiérarchie d'héritage

CGlobalUtils

Spécifications

En-tête : afxglobalutils.h

CGlobalUtils ::AdjustRectToWorkArea

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

Paramètres

[in, out] Rect
[in] pRectDelta

Notes

CGlobalUtils ::CalcExpectedDockedRect

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

Paramètres

[in] barContainerManager

[in] pWndTodock

[in] ptMouse

[out] rectResult

[out] bDrawTab

[out] ppTargetBar

Notes

CGlobalUtils ::CanBeAttached

BOOL CanBeAttached(CWnd* pWnd) const;

Paramètres

[in] Pwnd

Valeur de retour

Notes

CGlobalUtils ::CanPaneBeInFloatingMultiPaneFrameWnd

BOOL CanPaneBeInFloatingMultiPaneFrameWnd(CWnd* pWnd) const;

Paramètres

[in] Pwnd

Valeur de retour

Notes

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;

Paramètres

[in] Point

[in] pBar

[in] nSensitivity

[in] pDockManager

[in] bOuterEdge

[out] dwAlignment

[in] dwEnabledDockBars

[in] lpRectBounds

Valeur de retour

Notes

CGlobalUtils ::CyFromString

BOOL CyFromString(
    CY& cy,
    LPCTSTR psz);

Paramètres

[out] Cy

[in] Zsp

Valeur de retour

Notes

CGlobalUtils ::D ecimalFromString

BOOL DecimalFromString(
    DECIMAL& decimal,
    LPCTSTR psz);

Paramètres

[out] décimal

[in] Zsp

Valeur de retour

Notes

CGlobalUtils ::FlipRect

void FlipRect(
    CRect& rect,
    int nDegrees);

Paramètres

[in, out] Rect
[in] nDegrees

Notes

CGlobalUtils ::ForceAdjustLayout

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

Paramètres

[in, out] pDockManager

[in] bForce

[in] bForceInvisible

Notes

CGlobalUtils ::GetDockingManager

CDockingManager* GetDockingManager(CWnd* pWnd);

Paramètres

[in] Pwnd

Valeur de retour

Notes

CGlobalUtils ::GetOppositeAlignment

DWORD GetOppositeAlignment(DWORD dwAlign);

Paramètres

[in] dwAlign

Valeur de retour

Notes

CGlobalUtils ::GetPaneAndAlignFromPoint

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

Paramètres

[in] barContainerManager

[in] Pt

[out] ppTargetControlBar

[out] dwAlignment

[out] bTabArea

[out] bCaption

Valeur de retour

Notes

CGlobalUtils ::GetWndIcon

HICON GetWndIcon(CWnd* pWnd);

Paramètres

[in] Pwnd

Valeur de retour

Notes

CGlobalUtils ::SetNewParent

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

Paramètres

[in] lstControlBars

[in] pNewParent

[in] bCheckVisibility

Notes

CGlobalUtils ::StringFromCy

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

Paramètres

[out] Str

[in] Cy

Valeur de retour

Notes

CGlobalUtils ::StringFromDecimal

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

Paramètres

[out] Str

[in] décimal

Valeur de retour

Notes

Voir aussi

Graphique hiérarchique
Classes