获取父窗口背景小方法:
::MapWindowPoints( NULL, hparent, (LPPOINT)&rc, 2 );
CPoint pt;dc.SetViewportOrg( -rc.left, -rc.top, &pt );
GetParent().SendMessage( WM_ERASEBKGND, (WPARAM)(HDC)dc, lParam );
dc.SetViewportOrg( pt.x, pt.y, NULL );
滚动条的处理都在WM_NCXXX消息里面处理