用VC6.0做平面工具兰为什么要自己檫除非客户区,檫除非客户区的函数如下:
void CEnhancedToolBar::EraseNonClient()
{//擦除非用户区
CWindowDC dc(this);
CRect rectClient;
GetClientRect(rectClient);CRect rectWindow;
GetWindowRect(rectWindow);
ScreenToClient(rectWindow);CRect rect = rectClient;
rectClient.OffsetRect(-rectWindow.left , -rectWindow.top );dc.ExcludeClipRect(rectClient);// 绘制非用户区的边界
rectWindow.OffsetRect(-rectWindow.left, -rectWindow.top);
DrawBorders(&dc, rectWindow);// 擦除非绘制部分
dc.IntersectClipRect(rectWindow);
SendMessage(WM_ERASEBKGND, (WPARAM)dc.m_hDC);
DrawGrip(&dc, rectWindow); //绘制“把手”
}  
下面这条代码是做什么用的,为什么要这条语句
rectWindow.OffsetRect(-rectWindow.left, -rectWindow.top);