fillsolidrect_onerasebkgnd 重影_bitblt函数(14)

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

// (CBRS_SIZE_DYNAMIC is used for resizng when floating)

ASSERT (!((dwStyle & CBRS_SIZE_FIXED) &&

(dwStyle & CBRS_SIZE_DYNAMIC)));

m_dwStyle = dwStyle & CBRS_ALL; // save the control bar styles

// register and create the window - skip CControlBar::Create()

CString wndclass = ::AfxRegisterWndClass(CS_DBLCLKS,

::LoadCursor(NULL, IDC_ARROW),

::GetSysColorBrush(COLOR_BTNFACE), 0);

dwStyle &= ~CBRS_ALL; // keep only the generic window styles

dwStyle |= WS_CLIPCHILDREN; // prevents flashing

if (!CWnd::Create(wndclass, lpszWindowName, dwStyle,

CRect(0, 0, 0, 0), pParentWnd, nID))

return FALSE;

return TRUE;

}

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

// CSizingControlBar operations

#if defined(_SCB_REPLACE_MINIFRAME) && !defined(_SCB_MINIFRAME_CAPTION)

void CSizingControlBar::EnableDocking(DWORD dwDockStyle)

{

// must be CBRS_ALIGN_XXX or CBRS_FLOAT_MULTI only

ASSERT((dwDockStyle & ~(CBRS_ALIGN_ANY|CBRS_FLOAT_MULTI)) == 0);

// cannot have the CBRS_FLOAT_MULTI style

ASSERT((dwDockStyle & CBRS_FLOAT_MULTI) == 0);

// the bar must have CBRS_SIZE_DYNAMIC style

ASSERT((m_dwStyle & CBRS_SIZE_DYNAMIC) != 0);

m_dwDockStyle = dwDockStyle;

if (m_pDockContext == NULL)

m_pDockContext = new CSockContext(this);

// permanently wire the bar's owner to its current parent

if (m_hWndOwner == NULL)

m_hWndOwner = ::GetParent(m_hWnd);

}

#endif

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

// CSizingControlBar message handlers


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

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

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