Using GetWindowDC(), invisible parts of the window are not included in the obtained DC. Why?
I attached some code.
When you click at Form1, the contents of Form2 are Blt into Form1. When you move some part of Form2 so that it would be invisible, this invisible part are no longer painted anymore until it becomes visible again.