fillsolidrect_onerasebkgnd 重影_bitblt函数(35)

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

return NULL;

return (CSizingControlBar*) pWnd;

}

void CSCBMiniDockFrameWnd::OnSize(UINT nType, int cx, int cy)

{

CSizingControlBar* pBar = GetSizingControlBar();

if ((pBar != NULL) && (GetStyle() & MFS_4THICKFRAME) == 0

&& pBar->IsVisible())

pBar->m_szFloat = CSize(cx + 4, cy + 4);

baseCSCBMiniDockFrameWnd::OnSize(nType, cx, cy);

}

void CSCBMiniDockFrameWnd::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI)

{

baseCSCBMiniDockFrameWnd::OnGetMinMaxInfo(lpMMI);

CSizingControlBar* pBar = GetSizingControlBar();

if (pBar != NULL)

{

CRect r(CPoint(0, 0), pBar->m_szMinFloat - CSize(4, 4));

#ifndef _SCB_MINIFRAME_CAPTION

CMiniFrameWnd::CalcBorders(&r, WS_THICKFRAME);

#else

CMiniFrameWnd::CalcBorders(&r, WS_THICKFRAME|WS_CAPTION);

#endif //_SCB_MINIFRAME_CAPTION

lpMMI->ptMinTrackSize.x = r.Width();

lpMMI->ptMinTrackSize.y = r.Height();

}

}

void CSCBMiniDockFrameWnd::OnWindowPosChanging(WINDOWPOS FAR* lpwndpos)

{

if ((GetStyle() & MFS_4THICKFRAME) != 0)

{

CSizingControlBar* pBar = GetSizingControlBar();

if (pBar != NULL)

{

lpwndpos->flags |= SWP_NOSIZE; // don't size this time

// prevents flicker

pBar->m_pDockBar->ModifyStyle(0, WS_CLIPCHILDREN);

// enable diagonal resizing

ModifyStyle(MFS_4THICKFRAME, 0);

#ifndef _SCB_MINIFRAME_CAPTION

// remove caption

ModifyStyle(WS_SYSMENU|WS_CAPTION, 0);

#endif

DelayRecalcLayout();

pBar->PostMessage(WM_NCPAINT);

}

}

CMiniFrameWnd::OnWindowPosChanging(lpwndpos);

}

#endif //_SCB_REPLACE_MINIFRAME


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

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

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