fillsolidrect_onerasebkgnd 重影_bitblt函数(24)

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

case HTTOP:sizeNew -= CSize(0, nDelta); break;

fillsolidrect_bitblt函数_onerasebkgnd 重影

case HTRIGHT: sizeNew += CSize(nDelta, 0); break;

case HTBOTTOM: sizeNew += CSize(0, nDelta); break;

}

CSCBArray arrSCBars;

int nThis;

GetRowSizingBars(arrSCBars, nThis);

if (!IsSideTracking())

for (int i = 0; i < arrSCBars.GetSize(); i++)

{

CSizingControlBar* pBar = arrSCBars[i];

// make same width (or height)

(bHorz ? pBar->m_szHorz.cy : pBar->m_szVert.cx) =

bHorz ? sizeNew.cy : sizeNew.cx;

}

else

{

int nGrowingBar = nThis;

BOOL bBefore = m_htEdge == HTTOP || m_htEdge == HTLEFT;

if (bBefore && nDelta > 0)

nGrowingBar--;

if (!bBefore && nDelta < 0)

nGrowingBar++;

if (nGrowingBar != nThis)

bBefore = !bBefore;

// nGrowing is growing

nDelta = abs(nDelta);

CSizingControlBar* pBar = arrSCBars[nGrowingBar];

(bHorz ? pBar->m_szHorz.cx : pBar->m_szVert.cy) += nDelta;

// the others are shrinking

int nFirst = bBefore ? nGrowingBar - 1 : nGrowingBar + 1;

int nLimit = bBefore ? -1 : arrSCBars.GetSize();

for (int i = nFirst; nDelta != 0 && i != nLimit; i += (bBefore ? -1 : 1))

{

CSizingControlBar* pBar = arrSCBars[i];

int nDeltaT = min(nDelta,

(bHorz ? pBar->m_szHorz.cx : pBar->m_szVert.cy) -

(bHorz ? pBar->m_szMinHorz.cx : pBar->m_szMinVert.cy));

(bHorz ? pBar->m_szHorz.cx : pBar->m_szVert.cy) -= nDeltaT;

nDelta -= nDeltaT;

}

}

OnTrackInvertTracker(); // redraw tracker at new pos

if (m_bDragShowContent)

m_pDockSite->DelayRecalcLayout();

}

void CSizingControlBar::OnTrackInvertTracker()


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

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

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