RECT rcWindow,rcClient;
GetWindowRect( hWnd,&rcWindow );
GetClientRect( hWnd,&rcClient );
ClientToScreen( hWnd,&rcClient );
int nOffsetX = rcClient.left - rcWindow.left;
int nOffsetY = rcClient.top - rcWindow.top;
ScreenToClient( hWnd,&rcClient );
int nWidth = rcWindow.right - rcWindow.left;
int nHeight = rcWindow.bottom - rcWindow.top;
rcWindow.left = 0;rcWindow.right = nWidth;rcWindow.top = 0;rcWindow.bottom = nHeight;
rcClient.left += nOffsetX;rcClient.right += nOffsetX;rcClient.top += nOffsetY-2;rcClient.bottom += nOffsetY-2;
        //rcClient是客户区区域,改变之后区域空缺。