You have to select an hBitmap into a Dc for to set its size. Create an hBitmap the same size as your screen and then use SelectObject to place it into the Dc.