fillsolidrect_onerasebkgnd 重影_bitblt函数(22)

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

}

}

}

void CSizingControlBar::OnClose()

{

// do nothing: protection against accidentally destruction by the

// child control (i.e. if user hits Esc in a child editctrl)

}

/////////////////////////////////////////////////////////////////////////

// CSizingControlBar implementation helpers

void CSizingControlBar::StartTracking(UINT nHitTest, CPoint point)

{

SetCapture();

// make sure no updates are pending

if (!m_bDragShowContent)

RedrawWindow(NULL, NULL, RDW_ALLCHILDREN | RDW_UPDATENOW);

m_htEdge = nHitTest;

m_bTracking = TRUE;

BOOL bHorz = IsHorzDocked();

BOOL bHorzTracking = m_htEdge == HTLEFT || m_htEdge == HTRIGHT;

m_nTrackPosOld = bHorzTracking ? point.x : point.y;

CRect rcBar, rcEdge;

GetWindowRect(rcBar);

GetEdgeRect(rcBar, m_htEdge, rcEdge);

m_nTrackEdgeOfs = m_nTrackPosOld -

(bHorzTracking ? rcEdge.CenterPoint().x : rcEdge.CenterPoint().y);

CSCBArray arrSCBars;

int nThis;

GetRowSizingBars(arrSCBars, nThis);

m_nTrackPosMin = m_nTrackPosMax = m_nTrackPosOld;

if (!IsSideTracking())

{

// calc minwidth as the max minwidth of the sizing bars on row

int nMinWidth = bHorz ? m_szMinHorz.cy : m_szMinVert.cx;

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

nMinWidth = max(nMinWidth, bHorz ?

arrSCBars[i]->m_szMinHorz.cy :

arrSCBars[i]->m_szMinVert.cx);

int nExcessWidth = (bHorz ? m_szHorz.cy : m_szVert.cx) - nMinWidth;

// the control bar cannot grow with more than the width of

// remaining client area of the mainframe

CRect rcT;

m_pDockSite->RepositionBars(0, 0xFFFF, AFX_IDW_PANE_FIRST,


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

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

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