다음을 통해 공유


CGlobalUtils 클래스

더 자세한 내용은 Visual Studio 설치의 VC\atlmfc\src\mfc 폴더에 있는 소스 코드를 참조하세요.

구문

class CGlobalUtils

멤버

공용 메서드

이름 설명
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

설명

상속 계층 구조

CGlobalUtils

요구 사항

헤더: afxglobalutils.h

CGlobalUtils::AdjustRectToWorkArea

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

매개 변수

[in, out] rect
[in] pRectDelta

설명

CGlobalUtils::CalcExpectedDockedRect

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

매개 변수

[in] barContainerManager

[in] pWndTodock

[in] ptMouse

[out] rectResult

[out] bDrawTab

[out] ppTargetBar

설명

CGlobalUtils::CanBeAttached

BOOL CanBeAttached(CWnd* pWnd) const;

매개 변수

[in] pWnd

Return Value

설명

CGlobalUtils::CanPaneBeInFloatingMultiPaneFrameWnd

BOOL CanPaneBeInFloatingMultiPaneFrameWnd(CWnd* pWnd) const;

매개 변수

[in] pWnd

Return Value

설명

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;

매개 변수

[in]

[in] pBar

[in] nSensitivity

[in] pDockManager

[in] bOuterEdge

[out] dwAlignment

[in] dwEnabledDockBars

[in] lpRectBounds

Return Value

설명

CGlobalUtils::CyFromString

BOOL CyFromString(
    CY& cy,
    LPCTSTR psz);

매개 변수

[out] cy

[in] psz

Return Value

설명

CGlobalUtils::D ecimalFromString

BOOL DecimalFromString(
    DECIMAL& decimal,
    LPCTSTR psz);

매개 변수

[out] 십진법

[in] psz

Return Value

설명

CGlobalUtils::FlipRect

void FlipRect(
    CRect& rect,
    int nDegrees);

매개 변수

[in, out] rect
[in] nDegrees

설명

CGlobalUtils::ForceAdjustLayout

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

매개 변수

[in, out] pDockManager

[in] bForce

[in] bForceInvisible

설명

CGlobalUtils::GetDockingManager

CDockingManager* GetDockingManager(CWnd* pWnd);

매개 변수

[in] pWnd

Return Value

설명

CGlobalUtils::GetOppositeAlignment

DWORD GetOppositeAlignment(DWORD dwAlign);

매개 변수

[in] dwAlign

Return Value

설명

CGlobalUtils::GetPaneAndAlignFromPoint

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

매개 변수

[in] barContainerManager

[in] pt

[out] ppTargetControlBar

[out] dwAlignment

[out] bTabArea

[out] bCaption

Return Value

설명

CGlobalUtils::GetWndIcon

HICON GetWndIcon(CWnd* pWnd);

매개 변수

[in] pWnd

Return Value

설명

CGlobalUtils::SetNewParent

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

매개 변수

[in] lstControlBars

[in] pNewParent

[in] bCheckVisibility

설명

CGlobalUtils::StringFromCy

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

매개 변수

[out] str(str)

[in] cy

Return Value

설명

CGlobalUtils::StringFromDecimal

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

매개 변수

[out] str(str)

[in] 십진법

Return Value

설명

참고 항목

계층 구조 차트
클래스