To prepare a device context, Windows adjusts the device origin so that it aligns with the upper-left corner of the client area instead of with the upper-left corner of the screen. It also sets a rectangular clipping region so that output to a device context is clipped to the client area. This means any output that would otherwise appear outside the client area is not sent to the screen.