fillsolidrect_onerasebkgnd 重影_bitblt函数(32)

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

{

POSITION pos = pFrame->m_listControlBars.GetHeadPosition();

while (pos != NULL)

{

CSizingControlBar* pBar =

(CSizingControlBar*) pFrame->m_listControlBars.GetNext(pos);

ASSERT(pBar != NULL);

if (pBar->IsKindOf(RUNTIME_CLASS(CSizingControlBar)))

pBar->SaveState(lpszProfileName);

}

}

#ifdef _SCB_REPLACE_MINIFRAME

#ifndef _SCB_MINIFRAME_CAPTION

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

// CSockContext Drag Operations

static void AdjustRectangle(CRect& rect, CPoint pt)

{

int nXOffset = (pt.x < rect.left) ? (pt.x - rect.left) :

(pt.x > rect.right) ? (pt.x - rect.right) : 0;

int nYOffset = (pt.y < rect.top) ? (pt.y - rect.top) :

(pt.y > rect.bottom) ? (pt.y - rect.bottom) : 0;

rect.OffsetRect(nXOffset, nYOffset);

}

void CSockContext::StartDrag(CPoint pt)

{

ASSERT_VALID(m_pBar);

m_bDragging = TRUE;

InitLoop();

ASSERT((m_pBar->m_dwStyle & CBRS_SIZE_DYNAMIC) != 0);

// get true bar size (including borders)

CRect rect;

m_pBar->GetWindowRect(rect);

m_ptLast = pt;

CSize sizeHorz = m_pBar->CalcDynamicLayout(0, LM_HORZ | LM_HORZDOCK);

CSize sizeVert = m_pBar->CalcDynamicLayout(0, LM_VERTDOCK);

CSize sizeFloat = m_pBar->CalcDynamicLayout(0, LM_HORZ | LM_MRUWIDTH);

m_rectDragHorz = CRect(rect.TopLeft(), sizeHorz);

m_rectDragVert = CRect(rect.TopLeft(), sizeVert);

// calculate frame dragging rectangle

m_rectFrameDragHorz = CRect(rect.TopLeft(), sizeFloat);

#ifdef _MAC

CMiniFrameWnd::CalcBorders(&m_rectFrameDragHorz,


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

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

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