fillsolidrect_onerasebkgnd 重影_bitblt函数(19)

电脑杂谈  发布时间:2017-03-10 14:21:13  来源:网络整理

}

void CSizingControlBar::OnMouseMove(UINT nFlags, CPoint point)

{

if (m_bTracking)

{

CPoint ptScreen = point;

ClientToScreen(&ptScreen);

OnTrackUpdateSize(ptScreen);

}

baseCSizingControlBar::OnMouseMove(nFlags, point);

}

void CSizingControlBar::OnCaptureChanged(CWnd *pWnd)

{

if (m_bTracking && (pWnd != this))

StopTracking();

baseCSizingControlBar::OnCaptureChanged(pWnd);

}

void CSizingControlBar::OnNcCalcSize(BOOL bCalcValidRects,

NCCALCSIZE_PARAMS FAR* lpncsp)

{

UNUSED_ALWAYS(bCalcValidRects);

#ifndef _SCB_REPLACE_MINIFRAME

// Enable diagonal resizing for floating miniframe

if (IsFloating())

{

CFrameWnd* pFrame = GetParentFrame();

if (pFrame != NULL &&

pFrame->IsKindOf(RUNTIME_CLASS(CMiniFrameWnd)))

{

DWORD dwStyle = ::GetWindowLong(pFrame->m_hWnd, GWL_STYLE);

if ((dwStyle & MFS_4THICKFRAME) != 0)

{

pFrame->ModifyStyle(MFS_4THICKFRAME, 0); // clear

GetParent()->ModifyStyle(0, WS_CLIPCHILDREN);

}

}

}

#endif _SCB_REPLACE_MINIFRAME

// compute the the client area

m_dwSCBStyle &= ~SCBS_EDGEALL;

// add resizing edges between bars on the same row

if (!IsFloating() && m_pDockBar != NULL)

{

CSCBArray arrSCBars;

int nThis;

GetRowSizingBars(arrSCBars, nThis);

BOOL bHorz = IsHorzDocked();

if (nThis > 0)

m_dwSCBStyle |= bHorz ? SCBS_EDGELEFT : SCBS_EDGETOP;

if (nThis < arrSCBars.GetUpperBound())

m_dwSCBStyle |= bHorz ? SCBS_EDGERIGHT : SCBS_EDGEBOTTOM;

}

NcCalcClient(&lpncsp->rgrc[0], m_nDockBarID);

}

void CSizingControlBar::NcCalcClient(LPRECT pRc, UINT nDockBarID)


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/jisuanjixue/article-36846-19.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...