fillsolidrect_onerasebkgnd 重影_bitblt函数(18)

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

return m_szFloat;

}

void CSizingControlBar::OnWindowPosChanging(WINDOWPOS FAR* lpwndpos)

{

// force non-client recalc if moved or resized

lpwndpos->flags |= SWP_FRAMECHANGED;

baseCSizingControlBar::OnWindowPosChanging(lpwndpos);

// find on which side are we docked

m_nDockBarID = GetParent()->GetDlgCtrlID();

if (!IsFloating())

if (lpwndpos->flags & SWP_SHOWWINDOW)

m_bKeepSize = TRUE;

}

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

// Mouse Handling

//

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

{

if (m_pDockBar != NULL)

{

// start the drag

ASSERT(m_pDockContext != NULL);

ClientToScreen(&point);

m_pDockContext->StartDrag(point);

}

else

CWnd::OnLButtonDown(nFlags, point);

}

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

{

if (m_pDockBar != NULL)

{

// toggle docking

ASSERT(m_pDockContext != NULL);

m_pDockContext->ToggleDocking();

}

else

CWnd::OnLButtonDblClk(nFlags, point);

}

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

{

UNUSED_ALWAYS(point);

if (m_bTracking || IsFloating())

return;

if ((nHitTest >= HTSIZEFIRST) && (nHitTest <= HTSIZELAST))

StartTracking(nHitTest, point); // sizing edge hit

}

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

{

if (m_bTracking)

StopTracking();

baseCSizingControlBar::OnLButtonUp(nFlags, point);

}

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

{

if (m_bTracking)

StopTracking();

baseCSizingControlBar::OnRButtonDown(nFlags, point);


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

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

    • 山戸恵
      山戸恵

      钱多就可以多娶

    • 刘晶
      刘晶

      你并没有权利不让人走

      • 凉公
        凉公

        因为还有中国和这样的国家能制衡美国

    • 冯木森
      冯木森

      10月电影院包起

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