Alexandre Julliard : user32: Pass the window styles to NC_GetInsideRect instead of accessing the window structure .