fillsolidrect_onerasebkgnd 重影_bitblt函数(26)

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

rcEdge.bottom = rcEdge.top + m_cxEdge;

rcEdge.DeflateRect(bHorz ? 0 : m_cxEdge, 0);

break;

case HTRIGHT:

if (!(m_dwSCBStyle & SCBS_EDGERIGHT)) return FALSE;

rcEdge.left = rcEdge.right - m_cxEdge;

rcEdge.DeflateRect(0, bHorz ? m_cxEdge: 0);

break;

case HTBOTTOM:

if (!(m_dwSCBStyle & SCBS_EDGEBOTTOM)) return FALSE;

rcEdge.top = rcEdge.bottom - m_cxEdge;

rcEdge.DeflateRect(bHorz ? 0 : m_cxEdge, 0);

break;

default:

ASSERT(FALSE); // invalid hit test code

}

return TRUE;

}

UINT CSizingControlBar::GetEdgeHTCode(int nEdge)

{

if (nEdge == 0) return HTLEFT;

if (nEdge == 1) return HTTOP;

if (nEdge == 2) return HTRIGHT;

if (nEdge == 3) return HTBOTTOM;

ASSERT(FALSE); // invalid edge code

return HTNOWHERE;

}

void CSizingControlBar::GetRowInfo(int& nFirst, int& nLast, int& nThis)

{

ASSERT_VALID(m_pDockBar); // verify bounds

nThis = m_pDockBar->FindBar(this);

ASSERT(nThis != -1);

int i, nBars = m_pDockBar->m_arrBars.GetSize();

// find the first and the last bar in row

for (nFirst = -1, i = nThis - 1; i >= 0 && nFirst == -1; i--)

if (m_pDockBar->m_arrBars[i] == NULL)

nFirst = i + 1;

for (nLast = -1, i = nThis + 1; i < nBars && nLast == -1; i++)

if (m_pDockBar->m_arrBars[i] == NULL)

nLast = i - 1;

ASSERT((nLast != -1) && (nFirst != -1));

}

void CSizingControlBar::GetRowSizingBars(CSCBArray& arrSCBars)

{

int nThis; // dummy

GetRowSizingBars(arrSCBars, nThis);

}

void CSizingControlBar::GetRowSizingBars(CSCBArray& arrSCBars, int& nThis)


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

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

    • 王约
      王约

      先去追求那个不平凡去把

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