void CDockWindowDlg::OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS* lpncsp)
{
// TODO: 在此添加消息处理程序代码和/或调用默认值
lpncsp->rgrc[0].top += 20;
CRect rtWindow,rt;
GetWindowRect(rtWindow);
rt.left = GetSystemMetrics(SM_CXFRAME);
rt.top = GetSystemMetrics(SM_CXFRAME);
rt.right = rtWindow.right - rt.left - GetSystemMetrics(SM_CXFRAME);
rt.bottom = rt.top + GetSystemMetrics(SM_CYSIZE);
CDialogEx::OnNcCalcSize(bCalcValidRects, lpncsp);
}
CDC * pDC = GetWindowDC();
if(pDC)
{
CBrush Brush(RGB(0,200,200));
CBrush* pOldBrush = pDC->SelectObject(&Brush);
CRect rtWnd;
GetWindowRect(&rtWnd);
CPoint point;
//填充顶部框架
point.x = rtWnd.Width();
point.y = GetSystemMetrics(SM_CYSIZE) +